hle: read title packs through the host file cache (7x faster launch) #111

Open
github-bot wants to merge 1 commit from github-bot/gh-111 into main AGit
Owner

@⁠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.

**@⁠GaiuLulius** on GitHub · 2026-11-26 03:03 UTC · [original](https://github.com/uiliannn/VItoriaBr/pull/111) `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.
## 🇧🇷 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:44:15 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/111/head:github-bot/gh-111'
git switch 'github-bot/gh-111'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-111'
git switch 'github-bot/gh-111'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-111'
git switch 'github-bot/gh-111'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-111'
git switch 'main'
git merge --squash 'github-bot/gh-111'
git switch 'main'
git merge --ff-only 'github-bot/gh-111'
git switch 'main'
git merge 'github-bot/gh-111'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.