New
- GPU skinning: [Render] GpuSkinning=1 (the new default; needs the Direct3D 9 backend) animates characters and their shadows in a vertex shader. Before this, granny.dll did that work on the CPU, which took about 20 % of the render thread when zoomed out. Measured at 2560x1440, fully zoomed out, no frame cap: 94 fps before and 132 fps after (world view 10.1 ms before and 7.1 ms after). Where the shader can't take over (fog, clip planes, generated texture coordinates, Backend=chain), characters are skinned on the CPU as before.
- [Render] OffscreenPoses=4: characters that weren't drawn in the last two frames get their skeleton posed only every 4th frame instead of every frame. When zoomed out, 220-310 skeletons are animated per frame but only 70-120 of them are on screen. A character that comes into view is posed right before it is drawn. 1 = every frame, as the game does. Needs GpuSkinning.
- [Render] BatchGround=1: the ground's quads go straight to the batcher. Before, each quad took three device calls, about 7,000 per frame when zoomed out. 0 = the game's own flush.
Changes
- VSync=0 now really removes the frame cap in a window. Before, the game still stopped at the display's refresh rate (60 fps on a 60 Hz display). Without vsync the backend now uses blit-model presentation; VSync=1 keeps the flip model. The log now shows the display's refresh rate.
- D3DStats timers only run with [Debug] D3DStats=1. Before, they ran on every device call (about 37,000 per frame when zoomed out) even when the stats were off.
Diagnostics
- D3DStats now reports world view time per pass (tile rows, ground, layers, water, both object passes, 3D models), skeletons posed against skeletons drawn, posing time, and skipped and on-demand poses.
- [Debug] Profiler now samples the animation worker thread as well.
- [Debug] SkinCheck=0: compares Granny's skinning with SacredBild's own. Development aid, groundwork for GPU skinning.
Upgrade note: new keys [Render] BatchGround, GpuSkinning and OffscreenPoses, and [Debug] SkinCheck. The zip's SacredBild.ini replaces the existing one, so back up your settings before you extract it.
Full Changelog: nightly-37219320588...nightly-37229736411