3 ms·
Hint: you don't replace all pixels at once.
by anthk 4y ago
Hint: you don't replace all pixels at once.
- int_19h 4y agoMost PC games of the VGA DOS era did exactly that, though. But, well, a lot can be done in 30 cycles. If it's a 2D game, then you're mostly blitting sprites. If there's no need for translucency, each row can be reduced to a memcpy (i.e. probably REP MOVSD). Something like Doom had to do a lot more tricks to be fast enough. Though even then it still repainted all the pixels.
- adolph 4y agoYou might enjoy the Fridman interview of Carmack. He talks about that era’s repaint strategies.