Repository navigation
Veshiru 3.9.0 does less work around the GPU on the emulation side and makes the PGO build
reproducible on your own machine. It ships the same PGO profile as 3.8.3, and no frame-rate change
has been measured yet.
Emulation
- Scenes that copy many command-list pages in one dispatch now send the graphics driver one
barrier pair per batch instead of two per page. Titles that build their command lists on the GPU
were running hundreds of thousands of barriers a second. - At the end of a render pass, depth-only passes no longer hold colour work back and colour-only
passes no longer hold depth work back. - Uniform buffers that change on every draw are read once, straight into the memory the GPU reads,
instead of through a second copy. - The thread that cleans up after a finished frame no longer waits for the GPU while holding a lock
the GPU may be waiting for.
PGO
- Anyone who builds Veshiru can turn the profile on with one CMake option
(-DVESHIRU_PGO_USE=veshiru-windows.profdata) and get the same flags the release build uses. - The release build reads the profile before it compiles: one that is unreadable or empty fails
the build instead of shipping. - Recording a new profile is one script,
tools/windows/pgo-train.ps1.
Good to know
- The PGO profile is the one from 3.8.3. Retraining it is what would change what PGO does for
frame pacing, and it needs a Windows machine and the games. - These changes trim work the CPU does around the GPU and the number of barriers the driver sees.
The reference log (Mario Kart World on an i7-10750H with a GTX 1650) shows the GPU itself as the
limit in a race, so expect the same frame times there until that side is worked on. The full
record, including what was left out, is in
docs/performance/3.9-pgo-and-upstream-ports.md.
Full technical notes: CHANGELOG.md
Veshiru is a Windows-exclusive emulator: it is built and tested for 64-bit Windows 10 and 11 only.
Extract the entire zip and run veshiru.exe, or veshiru-cmd.exe from a terminal.
| Build Type | Standard | PGO (Recommended) | Notes |
|---|---|---|---|
| amd64 / x86_64 | zip | PGO zip | Both built with clang-cl and ThinLTO; the PGO zip uses a balanced multi-game Switch 1 & Switch 2 profile |
The PGO build is compiled with profile-guided optimization using a balanced multi-game Switch 1 & Switch 2 runtime profile (veshiru-windows.profdata). Prefer it on modern x86_64 CPUs.