github corepunch/open-realm v0.0.4-alpha
OpenRealm v0.0.4-alpha

latest releases: v0.0.11-alpha, v0.0.10-alpha, v0.0.9-alpha...
3 months ago

OpenRealm v0.0.4-alpha

A memory and renderer release. The headline change is a large RAM reduction in Warcraft III — peak usage dropped from ~850 MB to ~350 MB — plus a new data-driven way to declare shaders, and a round of StarCraft II rendering work (console chrome, shadows, M3 animation).

Memory reduction (Warcraft III ~850 MB → ~350 MB)

  • Packed model buffers — MDX/M2/M3 now pack each model into a single interleaved vertex buffer + one index buffer with byte-offset indexed draws, instead of six GL buffers per geoset (which rounded to ~70 MiB of 16 KiB backing allocations on Human02).
  • Leaner FDF frame pools — uiFrameDef_t/FRAMEPOINT booleans collapsed into bitfields and MAX_UI_CLASSES cut from 4096 to 2048 (measured peak 1167), roughly halving each 26.78 MiB frame pool.
  • Grow-on-demand loopback queues — the two fixed 8 MiB network queues now allocate lazily and grow only for queued bursts.
  • Smaller entity/snapshot budgets — MAX_GAME_ENTITIES and the per-frame packet snapshot budget tightened, and the oversized server snapshot allocation removed.

New structured shader definitions

The hand-written GLSL string literals are replaced by data-driven shader_desc_t declarations: each shader is a typed struct carrying its name, target GLSL version/precision/fragment output, and interface tables, with UNIFORM() offsetof bindings. One descriptor compiles for GLES3, GLSL 120, and GLSL 140, and uniform names, enum indices, and glGetUniformLocation strings can no longer drift apart. Also fixed a shader-define leak where a prior instanced compile could bleed BZ_USE_INSTANCING into normal M2 programs.

StarCraft II

  • 3D console chrome — RF_ORTHO_CAMERA flag, SC2Layout <Position>-driven left/center/right chrome placement, portrait panels (FT_PORTRAIT), and M3 "Stand" pose animation.
  • Shadows & lighting — ground-footprint shadow matrix (sc2_shadow_matrix) with 3×3 PCF, terrain + M3 shadow sampling, and the TerranTest test scene (Command Center, SCVs, Marines, Vespene Geyser).
  • Model resolution via UnitType catalog lookup with Buildings/Resources prefix handling.

Renderer & fixes

  • +vid_hidden 1 headless render mode (no window, no focus steal) for deterministic CI screenshots.
  • Fixed 128-bone palette contract, explicit per-source texture channel order (RGBA/BGRA), and animation/portrait fixes.
  • SDL display-mode log gated behind opt-in vid_modes.

Don't miss a new open-realm release

NewReleases is sending notifications on new releases.