hle: read title packs through the host file cache (7x faster launch) #111
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/uiliannn--VItoriaBr!111
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-111"
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?
@GaiuLulius on GitHub · 2026-11-26 03:03 UTC · original
GaiuLulius:hle-read-packs-host-file-cache→main· +133 −2 · 3 files · 1 commits · open🇧🇷 Português
Remove a flag FILE_FLAG_NO_BUFFERING em chamadas CreateFileW com acesso estrito de GENERIC_READ não-sobrepostas. Isso permite que as leituras de pacotes de dados do jogo passem pelo cache de arquivos do sistema operacional (Windows file cache/RAM). Em relançamentos com arquivos já cacheados na memória, o tempo até a primeira tela cai de ~37 s para ~5.5 s (~7x mais rápido), reduzindo I/O desnecessário em HDs e SSDs. Aberturas sobrepostas e com escrita mantêm suas flags intactas. Inclui 4 testes de regressão.
🇺🇸 English
Drops FILE_FLAG_NO_BUFFERING on non-overlapped CreateFileW calls with exact GENERIC_READ access. This routes title package reads through the Windows host file cache, allowing subsequent launches to read asset chunks directly from memory instead of the disk (cutting launch time from ~37 s to ~5.5 s, ~7x faster). Overlapped and write opens preserve their flags. Includes 4 regression tests.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.