Hardcoding game screens in source code works fine for a prototype—until you want to redesign the Patcher, add a seasonal skin, support ultrawide 21:9 monitors, or tweak a Settings modal without recompiling and redistributing the entire game executable.
Over the past two weeks, we completed the single largest architectural transformation in Gypsum Client’s history. We retired every hardcoded Go view file, rebuilt the client around four cleanly decoupled data-driven asset roots and visual Action Graphs, unified aspect-ratio scaling across every display family, and shipped Gypsum Studio—a native Linux visual authoring workbench powered by the exact same C++20 Vulkan SDL_gpu renderer as the game itself.
Architecture: Four Authored Roots, One Compiled Runtime
Instead of tangling 2D UI widgets, 3D world terrain, visual themes, and screen logic inside monolithic files, Gypsum separates authoring into four strict source roots that compile into verified binary archives.
1. Decoupled 4-Root Archives & Binary Boot Manifest
Everything the player sees or interacts with now compiles out of four strictly isolated source roots—so UI designers, world builders, skin artists, and gameplay engineers can collaborate in parallel without stepping on each other’s files:
- 2D UI Screens & Binary Boot Record: UI screens compile into compact FlatBuffers binary archives. The project boot manifest (default skin, aspect catalog, global fallback events, and key bindings) packs directly into the shared UI archive—leaving no plain-text boot files at runtime.
- Pure-3D World Zones: World scenes contain strictly 3D spatial objects, terrain, lighting, portals, and zone triggers with zero 2D UI fields, streaming seamlessly through a multi-zone manager supporting up to 16 mounted zones at once.
- Hot-Swappable Visual Skins: A dedicated skin pack layers cleanly into our 4-tier UI asset resolver—checking local overrides first, then the active skin, then the screen archive, and finally the shared UI archive.
- Embedded 3D Inside 2D UI: 2D screens never mix raw 3D meshes directly into UI files; instead, they embed live 3D worlds either as a fullscreen backdrop or as a bounded offscreen 3D sub-view composited inside the UI.
2. Scoped DataStore & Visual Action Graphs
To retire our hardcoded Login, Patcher, Shard Selection, and Character Selection Go views, we built a lock-free declarative execution model:
- 4-Scope Lock-Free DataStore: Widgets bind directly to event payloads, screen-local variables, session values (such as authenticated account state and shard lists), and saved cross-platform client settings.
- Reusable Engine Actions: Every workflow—from encrypted Gateway login and differential patching to One-Time Token handoffs, modal settings, and hot skin switching—runs as a visual Action Graph built from reusable engine actions.
- Non-Blocking Async Branching: Long-running network or disk actions return an immediate waiting state so buttons disable and status bars update smoothly, then route automatically to success or error branches when completion arrives.
3. Unified Aspect Catalog, Uniform Scaling & Two-Policy Windowing
Supporting laptops, ultrawide monitors, and 4K displays without distorted text or clipped modals required rethinking how resolutions and UI scaling work end-to-end:
- Project-Wide Aspect Catalog: Supported aspect families (
16:9,16:10,21:9) and their standard resolution presets live in one editable project catalog loaded dynamically from the binary boot manifest. - Uniform Reference-Height UI Scaling: Every screen is authored at a clean
1280×720baseline and scaled uniformly by viewport height—including universal proportional font scaling inside our C++20 engine so buttons, borders, and typography stay crisp at any resolution. - Two Clean Non-Resizable Window Policies: Launcher screens (Login and Patcher) use an aspect-locked windowed policy so bad fullscreen settings can never trap a player out of video recovery controls, while the 3D Game Session honors the player’s saved windowed, fullscreen, or borderless configuration (with automatic aspect matching on first run).
4. Introducing Gypsum Studio: Native Vulkan Authoring + Embedded AI
With the runtime completely data-driven, we built Gypsum Studio—a native Linux GTK4 authoring workbench built atop Conduit’s shared UI framework—so designers can craft screens, skins, Action Graphs, and 3D zones visually:
- 100% C++20 Vulkan Offscreen Stage: Studio runs our actual C++20
SDL_gpuVulkan engine in windowless offscreen mode rather than drawing a 2D approximation, displaying your physical GPU right in the toolbar and rendering main screens and modal dialogs side-by-side at exact client fidelity. - Auto-Laid-Out Visual Action Graphs: Automatically arranges complex async flows into tidy left-to-right columns with a one-click Readable vs. Technical view toggle.
- Built-In Antigravity AI: Connects Studio’s undoable document commands, asset browser, and preview stage to our embedded AI assistant over a private local bridge—enabling real-time human + Agentic AI co-authoring.
- Built-In 9-Chapter Authoring Manual: Bundles a searchable, offline Markdown and vector-diagram manual in a standalone non-modal window so guides stay open alongside your live canvas.
See Gypsum Studio in action across four live captures in our companion showcase: Inside Gypsum Studio: Live Vulkan UI Authoring, Visual Action Graphs & Asset Management, or explore the full engine overview on Powered by Gypsum 3D Engine.
