launcher: experiment with a reserved live shader worker #240
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/240"
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 brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T15:28:44Z.
Problem
All live compiler workers can be occupied by large cold DXC compiles, leaving a small request waiting behind them. That may increase latency while a title is running.
Experiment
Opt-in TUXBOX_RUNTIME_FAST_LANE=1 reserves one worker when there are at least two. Classify cold work using generated HLSL >=256 KiB (the existing large-pixel threshold, not a proven cost predictor). Defer large requests without a failure marker and resume them in publication order when capacity is available. Warm cache hits bypass admission; source validation, compiler flags, timeouts, worker ceiling and launch-time preparation are unchanged.
Measurements
Two live workers, three large requests (same generated 506,834-byte HLSL fixture) followed by a small 5,873-byte request. Real DXC and DXV; synthetic translator stub; separate cold caches with content reuse disabled to isolate scheduling. Three runs per mode, median:
These are synthetic latency/throughput measurements, not retail FPS or RAM measurements. Deferring a large request retranslates it once. Small expensive shaders can still block the reserved worker. Mixed workloads and memory pressure may benefit, while large-only batches may slow down. Keep disabled by default.
Validation
Draft pending full GPU suite, AMD and actual title profiling. Independent of #239; combined effects are not measured.
Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T23:21:17Z.
Deferred: reserved-worker experiment improves synthetic small-request latency but slows batch throughput ~52%; Nick's #283 addresses observed request wake-up latency independently. Revisit only if contention remains measured. Closing this draft to make the review queue manageable, per the maintainer's request. The branch and history remain intact at
5cbe1b1; no branch deleted.Pull request closed