Skip to content

Blueprint 0.18.0-alpha.3 (test build): hardware scrolling

Pre-release
Pre-release

Choose a tag to compare

@MaverickUK MaverickUK released this 29 Nov 23:21

A test build, not a release: from the perf/keen-scrolling branch, to measure on real hardware. 0.17.3 is the current release.

To try it: unzip, and run BLUEPRT in the folder. To measure it:

BLUEPRT /BENCH > BENCH.TXT
BLUEPRT /BENCH /NOSCROLL > NOSCROLL.TXT

The first line of each says how frames reach the screen (256 KB, hardware scrolling on any VGA or a 256 KB EGA). The ninth scene, jetpack, has the camera moving; the other eight mostly still. /NOSCROLL turns the scrolling off, to compare.

What's new since 0.17.3

  • Hardware scrolling (Commander Keen's way): with the camera moving, only the new lines, the edges and what's changed are sent to the EGA, instead of the whole frame. In 86Box (a 386DX-33 with an IBM EGA), the jetpack climb went from 48.5 ms a frame to 39.8.
  • Frames drawn and sent a cell at a time: every drawing call marks the 8x8 cells it draws on; only cells that can have changed are compared and sent.
  • The HUD kept as pixels: drawn again only when something on it changes, about 3 ms a frame less.
  • BLUEPRT /CHECKCELLS checks the marking (for development).

With the camera still, it's about even with 0.17.3 in emulators. Real hardware will say more. The details are in CHANGELOG.md.