←back to thread

331 points willm | 1 comments | | HN request time: 0.207s | source
Show context
emrah ◴[] No.41216266[source]
> The first trick is "overwrite, don't clear"

This is how games were written back in the day before DirectX was a thing. You'd write directly to the frame buffer and instead of clearing and redrawing, you'd redraw what changed and what was around and under it (because there was no time to refresh the entire view in time in addition to everything else you need to do)

replies(2): >>41217354 #>>41218952 #
1. Neywiny ◴[] No.41217354[source]
I learned this from ComputerCraft programming. It's become applicable many times since then, occasionally professionally. But, the ability to tell the terminal when it's starting/done a frame is a lot more powerful IMO.