Skip to content

perf(gpu): skip 1500 ms synchronous full-heap texture pass before bakes when VICTORY_BAKE_SOURCES is on - #2

Closed
wike1701 wants to merge 1 commit into
CHECK6960:mainfrom
wike1701:perf/bake-sources-only-pass
Closed

wike1701 wants to merge 1 commit into
CHECK6960:mainfrom
wike1701:perf/bake-sources-only-pass

Conversation

@wike1701

Copy link
Copy Markdown
Contributor

Summary

When \VICTORY_BAKE_SOURCES=1\ (default), \�ring_bake_sources\ already refreshes the exact textures referenced by a decoration bake draw. Running the legacy 1,500 ms synchronous full-heap texture pass beforehand caused 500–1,850 ms \�efore bakes\ frame freezes.

This PR skips the full-heap pre-bake pass when \VICTORY_BAKE_SOURCES=1\ (still keeping \VICTORY_BAKE_SOURCES=0\ behavior unchanged and respecting explicit \VICTORY_BAKE_PASS_MS\ overrides).

Verification

  • \cargo test -p victory-gpu --lib -- draw::\ — 9 passed, 0 failed (including \�ake_pass_budget_skips_full_heap_when_sources_on).

@CHECK6960

Copy link
Copy Markdown
Owner

Ported and merged onto main — skipping the full-heap pre-bake pass while VICTORY_BAKE_SOURCES=1 cleanly removes those multi-hundred-ms bake hitches. Thanks!

@CHECK6960 CHECK6960 closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants