GPU: drawing queue at high priority and the process in the card's high class (VICTORY_QUEUE_HIGH, VICTORY_GPU_PRIO, on; =0 off) #3921
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3921"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by 101Leafy on 2026-12-01T01:27:12Z.
Over 61 runs the twelve unchanged passes took from 24 to 52 ms a frame for the same work and bytes. The slow runs were the ones with other programs busy on the card beside the game. Every pass slowed, the long dispatches most, which is what sharing the card in time slices looks like.
The drawing queue is now made at
D3D12_COMMAND_QUEUE_PRIORITY_HIGH, and the process asks for the high class in the card's scheduler (D3DKMTSetProcessSchedulingPriorityClass, class 4, which needs no admin rights; realtime is not used). The result of both goes to the log.On by default.
VICTORY_QUEUE_HIGH=0keeps the queue at normal priority.VICTORY_GPU_PRIO=0(ornormal) leaves the process class alone,VICTORY_GPU_PRIO=aboveasks for above normal instead.cargo clippy -p victory-gpu -- -D warningsis clean.Imported from Marvisak/VIctory. Originally posted by passerbyyhx on 2026-12-01T14:08:42Z.
I checked the actual D3D12 queue and process scheduling settings at
25ac4c69in fresh processes on an RTX 4090 Laptop and Microsoft WARP. Both reported the same(queue priority, process class)values fromID3D12CommandQueue::GetDescandD3DKMTGetProcessSchedulingPriorityClass:VICTORY_QUEUE_HIGH=0,VICTORY_GPU_PRIO=0VICTORY_QUEUE_HIGH=0,VICTORY_GPU_PRIO=aboveVICTORY_GPU_PRIO=normalAll eight processes started in class 2. This checks that the requested settings took effect. Frame time under contention remains unmeasured.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.