Texture pass budget read in one place, bounded and logged (issue #983) #1046

Open
loufloufi310-cmyk wants to merge 1 commit from upstream-pr/1048 into main
loufloufi310-cmyk commented 2026-11-25 17:29:40 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by loufloufi310-cmyk on 2026-11-25T17:29:40Z.


  • VICTORY_TEXTURE_STAGE_MB, VICTORY_TEXTURE_STAGE_MS and VICTORY_TEXTURE_CATCHUP are read once by draw.rs stage_budget (StageBudget) instead of inline in heap_textures; the catch-up (x3 from 1,024 due slots) is StageBudget::for_due.
  • Values are clamped to 1-4,096 MB and 1-5,000 ms: 0 staged nothing at all with nothing to say so (VICTORY_HEAP_TEXTURES=0 is the off switch), and a huge value could overflow a backlog's bytes. A value not taken as written is warned about.
  • One log line says the budget a run had, so runs of the 192/384/768 sweep can be told apart from their logs.
  • Unset: the same budget as before (192 MB, 250 ms, catch-up on). Two unit tests; no frame-rate change claimed or measured.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6610030433 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1048). Originally posted by [loufloufi310-cmyk](https://github.com/loufloufi310-cmyk) on 2026-11-25T17:29:40Z. --- - VICTORY_TEXTURE_STAGE_MB, VICTORY_TEXTURE_STAGE_MS and VICTORY_TEXTURE_CATCHUP are read once by draw.rs stage_budget (StageBudget) instead of inline in heap_textures; the catch-up (x3 from 1,024 due slots) is StageBudget::for_due. - Values are clamped to 1-4,096 MB and 1-5,000 ms: 0 staged nothing at all with nothing to say so (VICTORY_HEAP_TEXTURES=0 is the off switch), and a huge value could overflow a backlog's bytes. A value not taken as written is warned about. - One log line says the budget a run had, so runs of the 192/384/768 sweep can be told apart from their logs. - Unset: the same budget as before (192 MB, 250 ms, catch-up on). Two unit tests; no frame-rate change claimed or measured.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1048:upstream-pr/1048'
git switch 'upstream-pr/1048'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1048'
git switch 'upstream-pr/1048'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1048'
git switch 'upstream-pr/1048'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1048'
git switch 'main'
git merge --squash 'upstream-pr/1048'
git switch 'main'
git merge --ff-only 'upstream-pr/1048'
git switch 'main'
git merge 'upstream-pr/1048'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!1046
No description provided.