Follow-up to #68: final optimized setup for 8 GB laptops, 25-55 fps on screen with FG #361
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from readmet3xt-lab/foxhound. Originally posted by yagizakkaya01 on 2026-12-01T18:22:20Z.
Hi, follow-up to #68.
I built the layer myself and spent a day tuning it for my laptop (RTX 4070 Laptop 8 GB, Ryzen 9 7940HS 8C/16T, 32 GB). This is the final optimized version I ended up with. I tested each change standing still in the same busy street for about 6 minutes and compared the
preparing per framelines.With this version, the on-screen counter with Frame Generation moves between about 25 and 55 fps depending on the scene (55 was on my brother's laptop, same kind of machine, same build and settings). In my fixed test spot the base fps went from about 13 to about 15.5 (~31 on screen with FG), and the submitting thread went from ~66 to ~52-59 ms per frame.
Final optimized version
Launcher: Series S profile, DLSS Performance, Frame Generation On, 30 fps, Texture loading Auto. In the game menu: Motion Blur Strength 0, because blur plus FG looked bad.
Further switches:
What each one does and why:
WIDE_THREADS=4(default 6 on 16 threads): refresh helpers. Fewer threads meant less fighting over cores and locks. 8 was worse, 3 made refreshes slower again.THIN_THREADS=5(default 8): list translators. Going from 8 to 5 cut the cost per list call from ~8 to ~5.9 µs. They were mostly getting in each other's way.UNDER_THREADS=4,VIEW_THREADS=4(default 6),LAND_THREADS=2(default 4): these pools sit idle most of the time, so shrinking them just takes threads off the scheduler.PRIORITY_TIERS=2,1,0(new, my build only): submitting thread at highest, its helpers (refresh, ask, relay, heap sync) one step lower, list translators at normal. WithHELPER_PRIORITY=1they all got the same priority and lock holders kept getting preempted. Putting the translators below normal (2,1,-1) was worse, the title then waits for its lists.JOURNAL_SHORT=1(new, my build only): the checks for "this copy has nothing new" take the write watch journal's read lock per check instead of holding it for a batch of 32 or 256. In a timeline the helpers were stuck for several ms at a time behind a waiting writer. This cut refreshes from ~22 to ~17 ms and the write watch asking from ~11 to ~8 ms.SPARE_MOST_MB=512(new, my build only): the cap on spare scratch chunks. Under memory pressure it drops to 128 MiB and the list threads start creating write-back chunks again (~4% of their CPU in a profile).Code changes in this version without a switch:
-C target-cpu=native(Zen 4). For my brother I used the usual x86-64-v3.Things I tried that didn't make it into the final version
GUARD_HOT=250: refreshes went from 17 to 50 ms, 8 fps.SUBMIT_FRAMES=2: the title stopped waiting at presents but fps didn't move and input lag got worse.INPLACE=1: black tearing on my machine after a few minutes.INPLACE_PROBE=1says the driver itself handles both private memory and a committed section fine, and the page pool would needSEC_COMMITto cover view memory.With the final version the whole process uses ~8.6 logical cores (title's own code ~2.6, list translation ~2.2, wait/wake syscalls ~0.9), so on this CPU it's total CPU that limits now, not one thread.
One build thing that bit me
victory-gpu/build.rshashesCargo.lockinto the translator fingerprint. Adding any dependency anywhere invalidates every shader translation, and I had to recompile ~89k pipelines (~2 hours). The paths are also sorted before hashing, so even a copy of the old lock at another path changes it. Hashing only what the translator depends on would avoid that.All my changes are behind switches. Happy to send PRs or my measurement scripts if any of this is useful.
Imported from readmet3xt-lab/foxhound. Originally posted by readmet3xt-lab on 2026-12-01T19:02:19Z.
Thank you for this; it is the most careful measurement anyone has sent us. Your Cargo.lock finding is right: the translator's stamp covers the whole lock file, so a dependency change anywhere retranslates every shader. We are narrowing it to what decides the translator's output.
We would like your changes as pull requests, one change each, so each can be measured and reverted on its own:
Your measurement scripts would help too, as a separate PR or a gist. Please keep each change behind a switch as you did, and note the machine and the switches beside the figures. The thread counts are settings, not code; we will add them to our notes for 8 GB laptops, with credit to you.
Imported from readmet3xt-lab/foxhound. Originally posted by yagizakkaya01 on 2026-12-02T11:40:40Z.
Thanks for accepting us as contributors. To work on v0.8.3 I need the title profile: without it DLSS, frame generation and BCPack are off on my side, so I can't measure anything comparable to v0.8.2. How do contributors get it? I'll keep it local and never commit it.