Skip to content

spacehulk_nx v0.1.2

Choose a tag to compare

@liartes liartes released this 09 Oct 18:47
· 18 commits to main since this release

spacehulk_nx v0.1.2

Smoother missions

  • No more freeze at each marine move. Before every undoable action the game copies its whole state for the Undo button, and did it on the main thread: the picture froze for 300-500 ms (more on big maps). The copy is now made on a worker thread, and the game's serialization code is replaced by an equivalent one without its per-object reflection and exceptions: a copy takes ~45 ms instead of ~270 ms, and much less garbage means fewer garbage-collector pauses. Undo, saves and loads write and read the same data as before: existing saves keep working.

Fixes

  • Out-of-memory crash when loading another mission. GPU buffers (textures, meshes) were mixed in the heap with the game's small allocations, which fragmented it until a texture found no room. They now get memory of their own. Several missions in a row load fine.
  • Intro movie sound: the music no longer has hiss and echo. It is resampled properly from 44.1 to 48 kHz, and decoded apart from the pictures, so it is never late. (The NVIDIA logo movie has no sound: its audio track is silent.)

Updating from v0.1.1

Replace spacehulk_nx.nro in sd:/switch/spacehulk_nx/. Your OBB, saves and config.ini are kept (one new option is added: [performance] gpu_buffer_pool).

You still need your own APK and OBB of Space Hulk for Android (versionCode 7, armeabi-v7a): no game files are included.