Repository navigation
Conversation
Under Wine/Proton, vkd3d-proton holds some pipelines for good, so the 12 s per-frame wait budget was waited out in every frame and those draws were dropped anyway. Default the budget to 500 ms when ntdll exports wine_get_version. Windows keeps the 12 s default; the VICTORY_PIPELINE_WAIT_MS override still wins everywhere. Measured on Linux (GE-Proton, vkd3d-proton, RADV), same save: before 0.1 fps (~12.2 s/frame), after 3.3-3.4 fps (~300 ms/frame).
luniiya
marked this pull request as ready for review
November 25, 2026 19:52
|
Rejeté sur la 4090 : la campagne 06 (3 paires alternées) a donné un écran noir et moins de draws (3 523-3 542 contre 4 316-4 390 à draw égale). Le gain de 12 % est un artefact du rendu cassé. Voir la discussion sur #22. On relance si un correctif du rendu est trouvé. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linux/Proton only. Windows is unaffected.
Problem
Under Wine/Proton, vkd3d-proton holds a few host pipelines for good: they never finish. The per-frame host pipeline wait budget (
DEFAULT_WAIT_MS, 12 s) was spent waiting on them in every frame, and their draws were dropped anyway. That's how the game ended up at 0.1 fps.Stack dumps (
VICTORY_STACKS) show the chain. The main thread waits on the frame semaphore, the render thread waits on its workers, and a worker waits indraw::State::run_indirect→pipeline::host_pipeline→make::ready→make::wait. Every frame waited exactly 12,000 ms.Change
wait_budgetnow defaults to 500 ms (WINE_WAIT_MS) when running under Wine, detected by ntdll exportingwine_get_version. Nothing else changes:on_wine()is false and the default stays 12 s.VICTORY_PIPELINE_WAIT_MSstill overrides the default everywhere.on_wine()isfalse.Results
Linux, GE-Proton + vkd3d-proton + RADV, same save, steady gameplay frames:
Before, 402 s were spent waiting on pipelines over 56 frames. With a manual 500 ms override the total was 16.6 s over 54 frames.
Testing
cargo xwin build --profile diag -p victory --features diagnostics.VICTORY_PIPELINE_WAIT_MSunset. The log showshost pipeline wait budget per frame, per kind millis=500, and the fps above are from that run.cargo xwin clippy -p victory-gpushows no warnings inmake.rs, andcargo fmt --checkis clean for it.on_wine(), which returns false there.The pipelines vkd3d never finishes are a separate issue, and I'm still looking into them.