Present on its own thread; Streamline's over-budget warning is not a failure #383

Closed
github-bot wants to merge 0 commits from github-bot/gh-383 into main AGit
Owner

@⁠AVD-appezhax on GitHub · 2026-12-01 20:55 UTC · original
AVD-appezhax:fix/present-aside-and-vram-warnings → main · +18 −10 · 2 files · 74 commits · closed without merging

Three changes, each measured in play on an RTX 5070 12 GB (1440p, DLSS Balanced, frame generation 4x).

1. Streamline's eWarnOutOfVRAM is a done call (DLSS evaluate, frame generation switch and state)

slEvaluateFeatureInternal (sl.common) runs the feature's evaluate callbacks first and only then returns eWarnOutOfVRAM (39) when the card is over its budget: the work is in the list. slDLSSGSetOptions / slDLSSGGetState answer it too. The port took it as failure:

  • DLSS: output not marked written; one moment over budget left DLSS without upscalings for the rest of a run (598 upscalings, then none for six minutes).
  • Frame generation: the switch to off at an idle moment was asked again every present (5,195 times) though it had been made, and frame generation was never switched on again; frame counts were dropped while over budget.

abi::ok takes eOk and that warning for the per-frame calls. After: DLSS ran all run, frame generation came back after every switch.

2. VICTORY_PRESENT_ASIDE=1: the swap chain's Present on a thread of its own (off by default)

A sampling profile had the line's thread inside Present for 8-17 ms of a 57 ms frame (frame generation's pacing), with the next frame's submissions waiting behind it. With the switch (needs VICTORY_SUBMIT_SPLIT working), the line records and sends the present's copy and sets frame generation's tags as before, then hands only the Present call to a victory-present thread. Nothing of ours reaches the drawing queue while it is out (the sender and wait_sent wait for it), so the card's order and VALID_UNTIL_PRESENT tags are unchanged. Frame median 55-65 ms -> 40-50 ms in play.

Clippy (workspace, all targets) clean; victory-gpu tests pass (476).

🤖 Generated with Claude Code

**@⁠AVD-appezhax** on GitHub · 2026-12-01 20:55 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/383) `AVD-appezhax:fix/present-aside-and-vram-warnings` → `main` · +18 −10 · 2 files · 74 commits · closed without merging Three changes, each measured in play on an RTX 5070 12 GB (1440p, DLSS Balanced, frame generation 4x). ### 1. Streamline's `eWarnOutOfVRAM` is a done call (DLSS evaluate, frame generation switch and state) `slEvaluateFeatureInternal` (sl.common) runs the feature's evaluate callbacks first and only then returns `eWarnOutOfVRAM` (39) when the card is over its budget: the work is in the list. `slDLSSGSetOptions` / `slDLSSGGetState` answer it too. The port took it as failure: - DLSS: output not marked written; one moment over budget left DLSS without upscalings for the rest of a run (598 upscalings, then none for six minutes). - Frame generation: the switch to off at an idle moment was asked again every present (5,195 times) though it had been made, and frame generation was never switched on again; frame counts were dropped while over budget. `abi::ok` takes `eOk` and that warning for the per-frame calls. After: DLSS ran all run, frame generation came back after every switch. ### 2. `VICTORY_PRESENT_ASIDE=1`: the swap chain's Present on a thread of its own (off by default) A sampling profile had the line's thread inside Present for 8-17 ms of a 57 ms frame (frame generation's pacing), with the next frame's submissions waiting behind it. With the switch (needs `VICTORY_SUBMIT_SPLIT` working), the line records and sends the present's copy and sets frame generation's tags as before, then hands only the Present call to a `victory-present` thread. Nothing of ours reaches the drawing queue while it is out (the sender and `wait_sent` wait for it), so the card's order and `VALID_UNTIL_PRESENT` tags are unchanged. Frame median 55-65 ms -> 40-50 ms in play. Clippy (workspace, all targets) clean; victory-gpu tests pass (476). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A profile at 1440p, DLSS Balanced, frame generation 4x had the line's
thread inside Present for 8 to 17 ms of a 57 ms frame (frame generation's
pacing), with the next frame's submissions waiting behind it.

With the switch (and VICTORY_SUBMIT_SPLIT working) the line's thread
records and sends the present's copy and sets frame generation's tags as
before, then hands the call to a thread of its own. Nothing of ours goes
to the drawing queue while it is out: the sender and wait_sent wait for
it, so the card's order is unchanged. Off unless asked for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
slEvaluateFeature returns eWarnOutOfVRAM after the feature's evaluate
callbacks recorded into the list (sl.common slEvaluateFeatureInternal):
the warning is advisory. Taken as a failure, DLSS's output was not marked
written and frame generation got no frames: in the 2026-12-01 18:42 run
one moment over budget left 598 upscalings counted and none for the six
minutes after. Counted now as recorded, and per frame in the log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
slDLSSGSetOptions and slDLSSGGetState answer eWarnOutOfVRAM too when the
card is over its budget. Taken as refused, the switch to off at an idle
moment (2026-12-01 19:08:53, the title stopped upscaling) was asked again
every present (5,195 times) while the switch had been made, frame
generation was then never switched on again, and the frames it showed
went uncounted from the first moment over budget. abi::ok takes eOk and
that warning, for the calls made every frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:57:27 +00:00
github-bot closed this pull request 2026-12-02 07:54:26 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.