Hacker News new | ask | show | jobs
by shiandow 2 days ago
This sounds like a valid criticism until you realise that at a low level you need to redraw the UI for every frame anyway.

It's only in higher level operations that frequent redrawing becomes a problem.

1 comments

Of course you don't; you only need to redraw things that have changed, when they change.

Back when computers didn't have so much spare capacity that's how most UIs worked. That's why the Win32 and X11 systems (and probably others but those are the ones I'm familiar with) give your application information about what specific rectangle of the window needs to be repainted when they ask the application to repaint something.