Two more SPU jobs run as native code: up to 11% faster on 4-core CPUs
Two more of the game's SPU jobs now run as ordinary native code instead of translated SPU code:
- The scene walker: every frame it walks the scene, culls what the camera can't see and builds the list of visible objects to draw. It was the heaviest SPU job left.
- The instance culler: the same culling for flat lists of objects.
Both are adapted to this build from MIT-licensed native versions (credits in THIRD_PARTY.md). The picture is the same: in testing, about 510,000 scene-walker jobs and 365,000 culler jobs were compared with the original SPU code, with no difference.
Measured frame time:
| CPU threads | Scene | v0.1.38 | Now |
|---|---|---|---|
| 4 | New Marais dock | 21.4 ms | 19.2 ms (+11%) |
| 4 | First big fight (the gate) | 24.7 ms | 23.3 ms (+6%) |
| 6 | New Marais dock | 16.8 ms | 15.9 ms (+6%) |
| 6 | First big fight (the gate) | 19.7 ms | 19.2 ms (+3%) |
With default settings on a 4-core / 8-thread CPU, the dock went from 67 to 70 fps.
Press Update now in the launcher, then Build/Play. This update re-translates the SPU jobs and recompiles the game, with no full toolkit rebuild. Or download inFamous2Recomp-v0.1.39-windows.zip / inFamous2Launcher.exe below.