Home Creators Posts Import Register Favorites Logout

Content

Retroquad's video mode subsystem went through a major rewrite.

Now it has multi-monitor support with unique monitor ID detection for identical monitors, which survives reboots, connection port changes and GPU replacement.

Video modes are now set through the new vid_mode_set command with all parameters exposed and identifiable (e.g. "vid_mode_set monitor=SAM0F14 type=fullscreen stretched=false width=1920 height=1080 frequency=59.940"), rather than blindly going through a limited ordered list; no need for memorizing video modes anymore!

This ensures that configuration files will stay consistent across different computers, eliminating the old Quake problem of the selected video mode being randomly changed between machines.

The single list of video modes is gone. Now the engine uses individually configured per-monitor video mode lists, including in the Video Modes menu (which was fully redesigned).

The lists are sorted by vertical resolution since that's what video resolutions are normally referred by nowadays (720p, 1080p, etc) and it's common for widescreen TVs/monitors to scale not-as-wide resolutions by surrounding them with vertical bars, so their vertical area of the screen tends to be consistent across all width ratios.

The Video Modes menu was fully redesigned to be a scrolling list now, so it will always display all of the available resolutions.

Lines of configuration naming an absent monitor are kept up to vid_mode_define_maxorphans rather than discarded, so unplugging a monitor doesn't lose its settings.

The configurations are not only per-monitor, but also per-mode. Each video mode in each monitor can be indepently configured for stretched aspect ratio (so, if you're playing at 1024x768 on a TV that stretches that resolution onto a 1920x1080 LCD panel, you can manually get a proper 16:9 aspect image, while the native 1920x1080 resolution can stay automatically set to also use the proper 16:9 aspect with no stretching).

This way you can switch between faster resolutions and higher resolutions with perfect visual consistency across all of them.

Video modes are only tested once. After confirming that a video mode is working, you won't need to lose time reconfirming it when setting it agan. This is also saved in the user.ini file to persist across game sessions and different machines using the same monitor. No more pointless nagging!

Automatic detection of whether the monitor's pixel grid is fixed (LCD/OLED/etc) or flexible (CRT) was also implemented, eliminating the need for the manual "pixel aspect (square/non-square)" option.

And the actual native resolution is now properly detected rather than guessed.

The over-resolution modes with non-native aspect ratio (e.g. 4096x2160 on a 3840x2160 screen) are ignored now, because their squished aspect often causes problems (for example, setting them in my Samsung TV permanently breaks the pixel aspect of all other video modes, forcing me to reset the TV configuration).

But over-resolution modes with native aspect ratio are still supported (e.g. 1920x1080 on a 1366x768 monitor).

All monitor refresh rates are now available, with perfect detection of their exact values:

They're being made available initially through console commands (to not bloat the menu), but later on I'll implement a refresh rate selector in the Video Modes menu.

Anyway, most users won't need to manually pick which refresh rate to use, because I've also implemented optimal monitor refresh rate detection, which eliminates the issue of the default being too low:

What this means is that even though Retroquad could already reach near 60fps, until now the fullscreen video modes would only operate at the first reported refresh rate (which in the case of some TVs is as low as 24Hz), making Retroquad display less frames than it was actually rendering. No lost frames anymore!

The optimal refresh rate is the highest evenly-split one near the vid_frequency_ceiling cvar (default 72). Not only this prevents framerate jitter, it also prevents the case where high-refresh 4K modes can exceed HDMI bandwidth at 4:4:4 and drop to 4:2:0 chroma, which could be visible as fringing on Quake's limited palette. So, even though the optimal refresh rate may be not the fastest one on ultra-fast monitors, it will always be the most stable and highest-quality one.

The non-fullscreen video modes were entirely redesigned too. The old ones were completely awkward and obsolete, so they got replaced with these:

Borderless Whole Area: This is the borderless mode that most modern game engines uses, covering the whole screen to look like a fullscreen video mode while allowing for other apps' windows to show up on the screen as needed.

Borderless Work Area: This is a new borderless mode that fills almost the entire screen, leaving only the system taskbar visible.

The area to be filled is dynamic and automatically adapts to any screen changes. You can change desktop resolution, desktop scaling, and resize & drag the system taskbar around while Retroquad instantly adjusts the window size, position and rendering resolution. This makes it the most perfect video mode for multi-tasking (highly immersive while not getting in the way of productivity), so it's the default now.

Resizable Window: A freely-resizable window with full support for all Windows features, including:

Free resizing from 320x240 to 4096x3072 (maximum actual ingame resolution) at any aspect, including portrait and ultrawide;

Actual maximized state;

Drag-to-maximize and drag-to-restore;

Dragging to the sides of the screen for tiled maximization;

Vertical snap-drag resizing;

Resolution-independent window geometry, so you can change the desktop resolution and Retroquad will stay at the same relative size in the same relative position of the screen.

The entire window geometry is properly preserved and restored not only when switching video modes, but also between launches:

Relative position;

Relative size;

Maximized state (so while it can start maximized, you can still un-maximize it back to a previously defined custom size).

The Retroquad window can also be positioned partially offscreen now, which is something it couldn't do before.

The offscreen position is automatically clamped to a reasonable amount when the dimensions of the desktop's work area changes, so the Retroquad window never gets lost; the titlebar is always reachable.

Also, all non-fullscreen modes now have automatic desktop DPI awareness. Previously, at e.g. 150% desktop resolution scaling on a 3840-wide panel the engine rendered 2560-wide and Windows blurred it up, but now Retroquad's non-fullscreen video modes renders sharp pixels regardless of desktop scaling.

Other misc changes:

The particle cache was changed from per-resolution to per-aspect, because all lower particle resolutions are effectively a subset of the maximum particle resolution.

Thanks to this the particle cache is generated only once for all resolutions within the same pixel aspect, but be aware that this makes the cache generation take much longer since it will always target the highest hardware-independent resolution (3072p).

RAM consumption stays the same because while the particles bigger than needed for the current video mode are generated and stored into the cache file, they are removed from the RAM afterwards.

Retroquad now writes a comment header in its config file (user.ini) to let the user be aware of possible configuration compatibility issues between different engine versions; here's an example:

// Configuration file generated by Retroquad// Engine version (WIP), built at 13:17:59 of Aug 24 2026

An ungodly amount of bugs and glitches were also fixed, so the Retroquad engine is even more robust now than it had already become in the previous posts.

I'm sorry for putting it this way, but Retroquad is simply going to destroy any competition when it comes to ease of use. Retroquad is killing, killing, killing it, and I can't wait to let everyone get the next public release.

Work on the 2D renderer has already started, and it's the next step towards redesigning the whole GUI subsystem.

Files

Retroquad's New Video Mode Subsystem: Sharper, Faster, Flexible & Multi-Monitor

Running in the Retroquad game engine, wip version 1.0.0: https://www.patreon.com/mankrip Hardware: CPU AMD Ryzen 5 PRO 3350G 3.6Ghz 4MB Cache AM4 Motherboard Biostar A320MH DDR4 RAM 16GB 2666MHz DDR4 SSD 256GB Sata 6GB/s Galax GeForce RTX 4060, 8GB, GDDR6 (for video recording only) Notes: See the Patreon post for many details about everything shown here. https://www.patreon.com/mankrip/posts/new-video-mode-167865355

Comments

No comments found for this post.