GPU: pipelines off the render thread and cached; indirect execution on
With indirect execution the world's first frame asked for over 1,200 pipelines at once and took more than 30 s, so the title's own GPU watchdog ended the run. Host pipelines are now made by worker threads: a first use waits at most 0.5 s per title frame, and that pipeline's draws are dropped until it is ready. The world presents frames again, and indirect execution is the default (the switch is gone). Pipelines are cached across runs: - every host pipeline goes into a pipeline library saved under the cache folder (named by a hash of the translated code, our root signature and the state; a blob the device rejects starts an empty library); - the pipelines drawn with are remembered and started during loading on the next run. One cold and one warm run: the last pipeline was ready 38 s after the world's first frame cold, 1.4 s warm; the first world frame took 3.2 s cold, 0.37 s warm. Also: - Copy-backs of shader-written ranges return only the bytes the GPU changed; they used to overwrite what the title's CPU wrote meanwhile, which crashed the title. - Indirect dispatch records are bounded (group counts were not), and the console's single-dispatch argument type runs as a dispatch. - Per-shader counts of dropped draws in the diagnostics log; a switch that submits and times each list alone. Not working yet: the world shows no geometry, and runs end on a GPU page fault after at most about 55 s. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
97c78d1087
commit
35b054ec03
13 files changed
+1018
-101
No files matched your search
@@ -827,6 +827,9 @@ fn null_like(words: &[u32; 10], at: D3D12_CPU_DESCRIPTOR_HANDLE) {
|
||||
}
|
||||
|
||||
/// A view that reads zeros, for slots whose view the host cannot make.
|
||||
/// shortcut: slots with no view at all (kind unknown) get this null 2D
|
||||
/// view; null buffer views there did not stop the world's low-address
|
||||
/// page faults (2026-11-24, run w10), so they are not the cause.
|
||||
fn null_view(at: D3D12_CPU_DESCRIPTOR_HANDLE) {
|
||||
let Some(host) = host() else { return };
|
||||
let desc = D3D12_SHADER_RESOURCE_VIEW_DESC {
|
||||
|
||||
Reference in new issue
Block a user