Files: the title's packs are opened with FILE_FLAG_NO_BUFFERING, so every launch reads them from the drive (RTX 2070 SUPER: 34-37 s -> 21-23 s to the title screen with the file cache) #422
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#422
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Jesper-Andersson on GitHub · 2026-11-27 02:26 UTC · original
The title opens its packs read-only with
FILE_FLAG_NO_BUFFERING, andfiles::CreateFileWpasses the flag on to the host. On Windows that keeps every read of those files out of the system file cache, so each launch reads the same bytes from the drive again, however recently the game ran. On this PC, letting those opens go through the file cache cut launch to the title-screen logo from 34-37 s to 21-23 s.Machine
test-perf@ 64c3742 + the change (numbers from a local branch, not frommain), diag buildWhere
crates/victory-hle/src/modules/files.rs:263-282at014d52d:CreateFileW(andCreateFileA) hand the title'sflagsto the host'sCreateFileWunchanged.A one-line log of each unbuffered open showed the title opening 8 files this way right at launch, all
access=0x80000000(GENERIC_READ),flags=0x20000000(FILE_FLAG_NO_BUFFERING), none overlapped. Its DirectStorage reads are not affected: ourdstorage.rsopens its own handles, which already go through the cache (VICTORY_DSTORAGE_IO=handles).What was run
Series S, DLSS, intro movies skipped (local branch), launched one after another, each closed at the title screen. Timed from the first log line to the start of the 2560x1440 logo movie, which comes before the title waits for a key.
Results
Each run logged the same 8 refused compute pipelines this card always has (see #70), and nothing new. B1 was already fast, on its first launch with the cache on, so the gain is not only from the cache being warm on later launches.
Notes
AI use
AI-assisted (Claude Code): the change, the runs' setup and this write-up. The runs were played on the machine above.