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

Open
github-bot wants to merge 1 commit from github-bot/gh-1048 into main AGit
Owner

@⁠loufloufi310-cmyk on GitHub · 2026-11-25 17:29 UTC · original
loufloufi310-cmyk:claude/victory-fork-issue-983-6aa24a → main · +138 −17 · 1 files · 1 commits · open

  • 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.
**@⁠loufloufi310-cmyk** on GitHub · 2026-11-25 17:29 UTC · [original](https://github.com/fxceless/victory-fork/pull/1048) `loufloufi310-cmyk:claude/victory-fork-issue-983-6aa24a` → `main` · +138 −17 · 1 files · 1 commits · open - 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.
- 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.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:56:36 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1048/head:github-bot/gh-1048'
git switch 'github-bot/gh-1048'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1048'
git switch 'github-bot/gh-1048'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1048'
git switch 'github-bot/gh-1048'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1048'
git switch 'main'
git merge --squash 'github-bot/gh-1048'
git switch 'main'
git merge --ff-only 'github-bot/gh-1048'
git switch 'main'
git merge 'github-bot/gh-1048'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.