Retro Porting Toolkit · Bring classic console games to modern hardware

Spend headroom on resolution

Most ports run at the original game's speed, so time saved by host-native HLE does not make the game faster. Spend it on higher internal resolution, supersampling and wider views, as a presentation layer the game never sees.

A port locked to the original game's speed does not run faster when its code gets faster. It finishes each frame sooner and waits. That spare time is headroom.

Headroom can be spent on things players see: higher internal resolution, supersampling, wider views, or running on weaker hardware.

Blinx at native 640 by 480 and at 3x, 1920 by 1440. Before the host-native work, 3x ran at 23.8 FPS. Now it holds the game's 30.

How does it work?

  1. Make the faithful path cheaper. Replace expensive groups of LLE parts with host-native HLE. See How does host-native HLE make a port faster?.
  2. Measure in milliseconds per frame. FPS stays at the cap until you run out of headroom, so it hides the gain.
  3. Add a presentation layer. Render a finer or wider image from the same game state.
  4. Let the player choose. Offer scales and quality options, and say which ones are expensive.

How do you keep the faithful path?

Keep the high-resolution image out of the simulation.

In gbarecomp, the game's own video chip state stays native. The enhanced image, its buffers and its history are left out of save states and netplay snapshots. In XboxLLR, Blinx keeps its original guest resource metadata while the renderer draws at a higher internal resolution.

At 1x, the result should match the original renderer.

What goes wrong?

ProblemWhat to do
Higher scales get slow fast.Work grows with the square of the scale: 8x has four times the pixels of 4x. Recommend a safe default and label the rest. gbarecomp marks every scale above 4x experimental.
The upscale shows no extra detail.Only some layers have more detail to give, such as 3D or affine backgrounds. Sprites and pixel art stay the same. Check before you ship a scale nobody benefits from.
One setting is too slow on some machines.Ship a safe default and document a cheaper fallback, such as original resolution without supersampling.
The image is too big for the GPU.Reduce only the upload when a texture limit or allocation fails. Keep the logical view and game state unchanged.

Examples of where it's used

Blinx on XboxLLR. At 3x internal resolution, CPU time per update fell from 57.0 to 34.4 ms. Game speed went from 23.8 to 29.5 updates per second, against a target of 30. The comparison at the top of this page is Blinx.

Mario Kart: Super Circuit on gbarecomp. Its course layer can be sampled at higher internal resolutions while sprites and HUD stay native. Moving that work to the GPU took 8x widescreen from 72.6 to 11.8 ms of CPU per frame, and from under 25 FPS to over 150 on a 2013 PC with a GTX 760. See Game Boy Advance.

Mario Kart: Super Circuit at native resolution and at 8x HD. The old CPU renderer managed under 25 FPS at 8x on a 2013 PC; the GPU renderer runs it at over 150.

Mario Kart: Super Circuit at 8x in 16:9. The track is sampled at high resolution, while karts, portraits and HUD stay pixel art.

PlayStation ports such as Ape Escape at 4K and Mega Man X6 at 4x. See the results table in How does host-native HLE make a port faster?.