This is the first published build. SacredBild is a ddraw.dll for Sacred Gold. It finds the code it patches by byte signature, so it works with both the English GOG build and the German 2.0 build.
Resolution and display
- Any resolution, defaulting to the desktop resolution ([Display] Width/Height). The world keeps its original pixel density and shows more of the map, including at 0.5x–2.0x zoom, and the view is centred on the screen.
- Fixed at high resolutions: depth range, water tiles, and a crash when moving north outside cities while zoomed out.
- With Backend=chain on Windows' own ddraw, surfaces larger than 2048 px are clamped to work around a Direct3D 7 limit.
- Always uses a 32-bit display mode.
UI
- The 1024x768 UI is drawn on a centred canvas scaled to the screen height ([UI] Scale, ScaleMode, LinearFilter). The mouse is mapped into that canvas.
- HUD windows sit at the screen edges ([UI] Anchor). You can place each one under [UI.Layout]: taskbar, chat, inventory, stats, equipment, minimap, party portraits, and the shop/chest/cube/trade windows.
- Menus, the loading screen and full-screen windows (map, options, save/load) fill the screen height. Full-screen windows now clear the background instead of showing leftover parts of the world view.
- Fixed: black lines between textures, cursor movement in the 2D UI, the continuous-movement cursor, and the position of help texts (H key).
Rendering backend
- New Direct3D 9Ex backend ([DDraw] Backend=d3d9, the default) that runs the game's DirectDraw/Direct3D 7 itself, without DDrawCompat. Settings: [Display] VSync, MaxFrameLatency. Backend=chain loads DDrawCompat or another wrapper behind SacredBild instead.
- Movies through Media Foundation: they keep their aspect ratio, the window stays responsive, and ESC, space and mouse clicks still skip them.
Performance
- The world view's thousands of draw calls are batched into a few ([Render] Batch, BatchNoClip, BatchVertexBuffer). Small textures are packed into atlas pages so more draws can be merged (Atlas, AtlasPageSize, AtlasPages, AtlasMaxTextureSize).
- 3D models are batched too (BatchModels), and animations update on a worker thread (AsyncAnimation).
- A hash index speeds up the game's tile and object record lookups (RecordIndex).
- [Display] FpsLimit replaces the game's in-game limit of 60 (0 = off). [Render] TextureBudgetMB sets how much texture memory the game may keep loaded.
Networking
- LAN games over VPNs: the hosted gameserver announces the game on every network adapter. For VPNs that don't carry broadcasts (WireGuard, Tailscale), players add the host under [Net] Hosts. Settings: Relay, Port (UDP 2105).
- [Net] NoDelay=1 turns off Nagle's algorithm in both data-flow modes, for lower latency with the MODEM/ISDN setting.
- [Net] JoinTimeout=30: joining players get 30 s instead of 5 s to connect, which avoids "connect timed out" on slow links.
Diagnostics
- [Debug] D3DStats (on by default in this build), Profiler and UiTrace.
Upgrade note for every nightly: the zip includes SacredBild.ini and overwrites the existing one, so back up your settings before extracting. Several defaults have changed: Borderless from 1 to auto, and D3DStats from 1 to 0. New keys were added: ClipCursor, FpsLimitInactive, D3D9, [Screenshot] Format, MovieFallback and CrashDump.
Full Changelog: https://github.com/kirides/sacred-bild/commits/nightly-37199953910