Repository navigation
v0.78 — Lighter draw thread, GPU threads on their own cores on SMT CPUs, no crash when video memory runs out
LatestThe shader cache is kept from v0.77 (the shader translation did not change), so there is no long rebuild after updating.
⚡ Lighter draw thread (thanks Lukto02 and @Lucas-blip-png)
From the Lucas-blip-png fork: draws that repeat the same state (a large share of the indirect draws in the open world) no longer hash their reusable-bind key or copy the shader data on every operation. In Lukto02's measurements this took 1.2 ms per frame off the draw thread in the heaviest scene, which matters most on 6-core and smaller CPUs.
• Together with it, the safety review of descriptor reuse (SOTC_FAST_BIND): a bind is no longer reused when guest memory changed during the bind, or when a helper pass (MSAA copy, shadow scroll, frame generation's HUD-less pass) replaced the descriptors in between. Four more cases found while porting it are fixed too.
• Checked over 45 million key comparisons and 33.7 million would-be reuses with no difference.
• SOTC_DRAWREPLAY=0 restores the old path.
⚡ GPU threads on their own cores on SMT CPUs (#464, thanks @SotC-Work)
On CPUs with SMT and 6 or more cores (Ryzen 5 5500/5600/5600X, i5-12400F...), the draw thread, the command processor and the recorder each get a physical core of their own, away from the game's busy workers: +6-11% in the Shrine on a Ryzen 5 5600X. It stays off on hybrid Intel CPUs (12th gen and later with E-cores). SOTC_PIN=0 turns it off, SOTC_PIN=1 forces it.
• A rare crash in the game's own allocator (0x499cc) is avoided, and every time the guard acts it is logged.
• The game no longer closes when Windows refuses to create a thread.
🧯 Running out of video memory no longer closes the game right away (#293, thanks @Lucas-blip-png)
When the driver reports no memory for a buffer (seen on RX 9070 XT and RX 7600), the port tries again without dedicated memory and, last, in system RAM: slower, but no crash.
Full list in the CHANGELOG.