Skip to content
digital_developer
Game DevRetroEngineThe King's SurveyorDirect3D 12Dear ImGui

RetroEngine is a custom Direct3D 12 engine built around CRT simulation

Solo developer Alexander Rybak described RetroEngine, the C++ engine behind the upcoming dungeon crawler The King's Surveyor, in an interview with 80 Level. It models how a CRT builds an image over time rather than applying a post-process filter.

Digital Developer Desk, 14h ago, 3 min read

Image: 80 Level

Alexander Rybak, who works as Analog Dream Dev, told 80 Level that RetroEngine is a game engine written from scratch in C++ on Direct3D 12. He says it is not a general engine with a retro filter on top. The renderer, lighting, palette handling and UI were all built knowing what the final display pass would do to the picture. He began the project on 31 October 2025, after buying a 1998 Sharp CRT television in September 2025 for thirty-five dollars.

Rybak says all runtime code is his own, including the renderer, animation system, audio mixer, save system, scripted sequence system, weather and world editor. The only third-party code is Dear ImGui (MIT-licensed), which lives in the editor UI and not in the game. The engine and editor are a single executable of about six megabytes. The editor is the game with a UI docked on top, so the editor view matches what the player sees. He says the game holds sixty frames a second on a seven-year-old laptop with an integrated GPU.

The constraints are set by the display model. Each frame depends on the previous one, the palette is a real limit rather than a grade, and the UI is drawn before the display pass so text goes through the same simulated glass as the world. The audio mixer has console profiles. Materials are albedo only, with no normal, specular or roughness maps, just color and a grayscale texture run through a color ramp. Rybak also describes two depth effects, Spatial Compression and Dimensional Falloff. The first bends the projection matrix, with the compression projected onto a sphere around the player so a full turn does not tear or slide at the edges. The second reduces saturation and lighting with distance.

On the CRT itself, Rybak says he modeled the device rather than the look: beam, phosphor, shadow mask or aperture grille, and curved glass, applied in that order. The scene renders into a linear-light HDR buffer. The beam model gives scan lines a profile, and bright signal spreads the beam slightly, so bloom is part of the beam model and not added afterward. Phosphor persistence is modeled per color channel with two mixed time constants, one fast and one slow, because he says real decay is not a single exponential. A persistence buffer carries over from frame to frame.

The rule he stresses is that persistence must never add energy. Early versions summed the afterglow on top of the new frame, and bright scenes slowly fogged toward white. He now combines new emission and the decayed remainder so the total cannot exceed what the beam put in. He also gates persistence by luminance, because near-black pixels that persist put a gray fog over dark scenes. Rybak says he has no formal graphics engineering background and is a technical artist who has been learning this in public.

Sources

Get the daily brief

The five stories that matter, every weekday morning. Free.