Crash fixes: upload room reserved at the start, D3D12 folder of any version, VICTORY_HOME
- upload.rs: 32 pieces of 64 MiB at the top of [4 GiB, 2^37) are reserved first thing in main, before the process's allocations can fill that window. On players' PCs it was full by the first ray-traced frame, the first upload failed and the title threw "D3D12 XDXR Error: Failed to allocate upload buffer". Past the pool: the window as before, a failed search not repeated for a second (with PR #88's per-frame limit in memory.rs), then the heap instead of null. - main.rs: D3D12SDKVersion follows the version of D3D12\D3D12Core.dll beside the exe (a repack's 1.618 or 1.620 gave 0x887E0003 against our 614). - VICTORY_HOME: one folder for settings, saves, caches, logs and downloads (a full C: drive, issue 135). - README: both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c5f7528bbf
commit
e69e39c55b
7 files changed
+242
-62
No files matched your search
@@ -195,8 +195,11 @@ pub(crate) fn preload(exe: &Path) {
|
||||
}
|
||||
}
|
||||
|
||||
/// `%LOCALAPPDATA%\victory`.
|
||||
/// `%LOCALAPPDATA%\victory`, or the folder `VICTORY_HOME` names.
|
||||
fn home() -> Result<PathBuf> {
|
||||
if let Some(home) = victory_core::config::home_override() {
|
||||
return Ok(home);
|
||||
}
|
||||
let base = std::env::var_os("LOCALAPPDATA").context("no %LOCALAPPDATA% to keep settings and logs in")?;
|
||||
Ok(PathBuf::from(base).join("victory"))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user