Repository navigation
Unzip, and run BLUEPRT in the folder, in DOSBox-X or on a real PC with a 386 or better and an EGA with 256 KB of video memory, or any VGA.
Much faster on a 386. On the owner's real 386, every benchmark scene takes 26-39% less time a frame than 0.20, and gas burning's worst frame less than half (271 ms to 130); most quiet scenes now draw 26-33 frames a second, where they drew 17-20.
With thanks to Vetz on VOGONS (retrogcom on GitHub), whose pull request, measured on his 486DLC, showed what was possible and where to look. The ideas were his; they were written again here for Blueprint's own ways: one renderer, the gameplay numbers kept in their tables, and everything checked against the C.
This release is 0.22.0 to 0.22.4 below, together:
- Frames are drawn in the EGA's own format, its four planes, 8 pixels to a word, fixed to the world: nothing is converted on the way to the screen, and only the plane bytes that changed are written to the card. One renderer for everything, which the host build draws through too, so its screenshots test it. The palette is rearranged so the commonest changes touch the fewest planes, and the HUD isn't sent again while it's the same.
- Assembly for sending frames and for the particles' commonest step and drawing, with gravity, drag and each kind's look still in particle.c's tables, and the structs the assembly assumes checked as the C compiles.
- After a break, the structure is repaired, not searched again: only what depended on the broken tiles is worked out again (
/CHECKREACHchecks it against the whole search). This is where gas burning's and the office's worst frames went. - Cheaper, finding exactly the same: the dimensions (their edges kept as bits), which tiles are solid (a grid kept with the map), the aim line, the hit tests, labels, gas, flames, hatching, circles, thick lines, the title block.
- Needs an EGA with 256 KB (or any VGA).
- Fixed: the DOS build and the host build now play and draw exactly the same (
make dosshotsmatchesmake shotsagain): C leaves the order of a call's arguments open, and Watcom and clang handed the same random numbers to different arguments. - Added:
/PROFILEandtools/profile.sh, which say where the time goes function by function, on DOSBox-X or a real PC.
Changed (since 0.22.4)
- The particles' drag tables and the gas blasts' kept damage are gone again: on the real 386 they made no difference (every scene within ±1.6%), so they were code for nothing. The damage-over-armour table and the damage stage by comparisons stay.
All the details: CHANGELOG.md.