Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> why not just render the interface to a framebuffer and then simply draw that when composing a frame and only re-draw the framebuffer when the GUI changed/played an animation frame

Some games did that in the past, and some might still do it!

But keep in mind that today the performance gains are so negligible when compared to the rest of the things you have to render on a single frame that the added complexity and the amount of things that could go wrong (glitches) are normally not worth it.

Also, copying that temporary framebuffer to the screen on each frame is not free and involves copying between two memory locations, whereas procedurally drawing things only involves CPU (or GPU) + the main framebuffer, which is super fast in comparison.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: