Skip to content

PokeV-Recomp v0.0.30

Choose a tag to compare

@github-actions github-actions released this 26 Nov 07:14
· 132 commits to main since this release
1688d91

PokeV-Recomp v0.0.30

A small release with two fixes: a workaround for a GPU stop on NVIDIA during Terastallized Water-type moves, and a
game-code generator fix aimed at two reported crashes.

Important

The game code is rebuilt once when you upgrade from v0.0.29 (10–30 minutes on the start screen). The generator
changed (#42), so GAMELIB_ID is new. Your saves, settings and data folder are not touched.

Fixes

GPU stop on Terastallized Water-type moves (NVIDIA): workaround (#22)

  • The problem. On an NVIDIA RTX 5070 Ti on Linux, the effect of a Terastallized Water-type move (reproduced with
    Kyogre's Water Spout) stopped the GPU on its first frame: GPU did not finish submission ... and kernel Xid 109.
  • What changed. One particle draw of that effect now uses the equivalent vertex shader of the draw just before it.
    That shader has the same inputs and outputs, and everything else about the draw stays the game's own.
  • Turning it off. It is on by default. LARECOMP_ISSUE22_FIX=0 turns it off. When it can't apply, the draw is
    drawn as before and the log says so.
  • The root cause has not been identified. This is a targeted workaround, not a fix of the underlying problem.
    Details, the experiments and their results: docs/issue-22-gpu-hang.md.

Game-code generator: jump tables with a distant bounds check (#42)

  • The problem. Some switch jump tables in the game have their bounds check more than 16 instructions before the
    jump. The generator now resolves them, up to 32 instructions back, and only after every existing recognizer.
  • Why it matters. This is the likely cause of the no function at 7001d1e7a8 / ...8c8 crashes
    (#18, #19). It is not yet confirmed in play, so those issues stay open
    until it is.

Tested on

  • Linux: NVIDIA GeForce RTX 5070 Ti, driver 620.73.04, Bazzite 45 (kernel 7.3.5), Pokémon Violet 4.0.0. The
    final build ran the Terastallized Water Spout with the workaround on: 100 draws of the effect's particle draw with
    the substituted shader, none drawn the old way, no GPU timeout and no Xid, about 60 fps. A first candidate of this
    release, before a last correction to the workaround, still hung; it was never published.
  • Automated: the new tools/test_issue22_fix.py regression test (added to the Linux CI) and the Vulkan regression
    tests, in the Ubuntu 22.04 build container.

Not tested for the #22 workaround: other NVIDIA GPUs and drivers, AMD and Intel GPUs, Windows, macOS, Steam Deck.
On those, the workaround still swaps that one draw's vertex shader for an output-equivalent one.

Compatibility

  • Game: Pokémon Violet 4.0.0 only, as before. Pokémon Scarlet is not supported yet.
  • Data: saves, larecomp.ini, data folders and environment variables are unchanged.
  • Game code: rebuilt once (see above): Linux GAMELIB_ID 98edf5304c9c7e63, Windows cc87153ae587af4f.
  • Linux AppImage: needs glibc 2.35 or newer.

Downloads

  • PokeV-Recomp-windows-x64.zip
  • PokeV-Recomp-linux-x86_64.AppImage

No game files are included. The start screen builds the game from your own dump.