perf(gpu): skip 1500 ms synchronous full-heap texture pass before bakes when VICTORY_BAKE_SOURCES is on #423
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!423
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-423"
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?
@wike1701 on GitHub · 2026-11-27 22:15 UTC · original
wike1701:perf/bake-sources-only-pass→main· +40 −10 · 1 files · 1 commits · openProblem
In open-world gameplay, every time an NPC or vehicle spawns and runs a decoration bake draw, State::early_textures runs self.heap_textures(bake_list, ...) synchronously with a default budget of 1,500 ms / 2 GiB (VICTORY_BAKE_TEXTURES_MS=1500) and then blocks on gpu.execute_sync_internal(bake_list).
In real open-world captures on an RTX 5060 Ti 16 GB, this caused 500–1,850 ms freezes every 5 seconds (2 before bakes (1850 ms), 5 before bakes (1122 ms), 9 before bakes (1003 ms), 2.6 fps / 385 ms/frame), even though State::bring_bake_sources() (VICTORY_BAKE_SOURCES=1, on by default) already scans the bake draw's exact texture references and uploads all of them synchronously (akes=256, sources=2899, failed=0).
Setting VICTORY_BAKE_TEXTURES_MS=0 previously disabled is_bake altogether, which also disabled ring_bake_sources.
Fix
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.