- All 24 workers read each file through one handle, whose reads the host does one after the other: 48 KiB at random from levels.rpf gave 185 MB/s where a handle per worker gives 990 (5 GB/s against 14 from the cache). VICTORY_DSTORAGE_IO=one|handles|overlapped|direct (handles). - xmem: the title's pages by number, and where it sees them, each have a lock of their own, apart from the one its mapping calls hold while the host maps, commits and unmaps. Looking pages up, filling one and telling of it, 24 threads beside one that maps: 2.7 million requests a second for 0.57, 145,000 maps a second for 60,000. A view is noted before the GPU side is told of it, so that a write between the two is not missed. - Title memory is not touched with these locks held. Benchmarks: read_bench (VICTORY_BENCH_FILE), map_bench, both ignored. Co-Authored-By: Claude Opus 5.5 <[email protected]>
57 lines
1.6 KiB
TOML
57 lines
1.6 KiB
TOML
[package]
|
|
name = "victory-hle"
|
|
description = "Our implementation of the Xbox system API surface the title imports."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
victory-gpu.workspace = true
|
|
victory-loader.workspace = true
|
|
victory-pe.workspace = true
|
|
victory-formats.workspace = true
|
|
opus-pure.workspace = true
|
|
zlib-rs.workspace = true
|
|
tracing.workspace = true
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { workspace = true, features = [
|
|
"Win32_Foundation",
|
|
"Win32_Globalization",
|
|
"Win32_Media",
|
|
"Win32_Security",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Diagnostics_Debug",
|
|
"Win32_System_IO",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Memory",
|
|
"Win32_System_Power",
|
|
"Win32_System_ProcessStatus",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
"Win32_UI_Input_XboxController",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|
|
# Diagnostics only: recording our own audio (`modules::audio::capture`).
|
|
windows = { workspace = true, optional = true, features = [
|
|
"Win32_Media_Audio",
|
|
"Win32_System_Com",
|
|
"Win32_System_Com_StructuredStorage",
|
|
"Win32_System_Threading",
|
|
"Win32_System_Variant",
|
|
] }
|
|
# `#[implement]` names it.
|
|
windows-core = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile.workspace = true
|
|
|
|
[features]
|
|
# Debugging switches (scripted keys and the like).
|
|
diagnostics = ["victory-gpu/diagnostics", "victory-loader/diagnostics", "dep:windows", "dep:windows-core"]
|
|
|
|
[lints]
|
|
workspace = true
|