Streaming, copy queue, texture pools and a shader cache that survives rebuilds

Textures and staging cut from 64 MB blocks; a kept view per page section and
page lists read again until the title has filled them in; the GPU side told
when streamed bytes land; results fetched over the copy queue
(VICTORY_RELAY_COPY=1); the write-watch journal behind a reader-writer lock;
the shader cache keyed by the translator's sources and `victory shaders`;
helper lanes as in upstream 1733 (VICTORY_HELPER_OWN).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-24 18:55:40 -06:00
1 parent 7f166af4f3
commit 9fea7434cd
20 files changed
+1629 -232

No files matched your search

+14
View File
@@ -36,6 +36,20 @@ fn host_gpu_failed(what: &str) -> ! {
unreachable!("the process has ended")
}
/// Translates `container` into the cache ([`use_shader_cache`]) ahead of
/// any run: whether it was there already, or why it does not translate.
pub fn precompile(container: &[u8]) -> Result<bool, String> {
#[cfg(windows)]
{
victory_gpu::shader_cache::precompile(container)
}
#[cfg(not(windows))]
{
let _ = container;
Err("no host".into())
}
}
/// Keeps the host's translations of the title's shaders in `dir` (a
/// folder of the cache) across runs, and its compiled pipelines beside it
/// (`pipelines`).