The Order: 1886 PC port v0.8.0 stops idle threads from eating four cores
The Order: 1886 PC port v0.8.0 replaces the game's idle job loop, cutting process CPU use from 22.1% to 7.0% on one test laptop.
The Order: 1886, a PS4 game from Ready at Dawn, has a v0.8.0 release of its Windows port, theorder1886-port. The port runs the game’s executable on the PC processor. Graphics run through the shadPS4 video core, which converts PS4 GPU commands and shaders to Vulkan.
The game has four Task Kernel job threads that poll empty queues nonstop. Version 0.8.0 replaces that idle callback with native code that sleeps 200 us after eight idle polls in a row. It is on by default, and THEORDER_TASK_IDLE=0 restores the original code. On one test machine with an i7-14650HX and an RTX 5060 Laptop GPU, process CPU dropped from 22.1% to 7.0%. Frame P95 moved from 17.75 to 17.55 ms. The author measured this on a 24-thread CPU, so the effect on chips with fewer cores is not known.
The release fixes graphics bugs, including black tearing on environment meshes and whiteout or pitch-black screens. It pre-queues shader pipelines, and in 60-second runs GPU-thread compile time fell 39 to 59%. First visits to new scenes still compile pipelines. The binary pipeline cache is capped at 4 GB by default.
To try it, you need Windows 10 (1903 or newer) or Windows 11 (64-bit), an AVX-capable CPU, a Vulkan 1.3 driver, MSYS2, Python 3, and your own dump of the game. The repo includes no game files. Only CUSA00035 version 01.02 has been tested.
- Install MSYS2 and open the MSYS2 CLANG64 shell.
- Clone with submodules:
git clone --recursive https://github.com/mateussmeneses/theorder1886-port, thencd theorder1886-portandbash build.sh. - Set
THEORDER_GAME_DIRto your game folder, or put the CUSA00035 folder next to the project folder.
The prologue boots and held the game 30 FPS in a four-minute run. Sound, saving, gameplay past the prologue, Linux, and AMD and Intel graphics cards are not verified. The port is a work in progress.
