Hacker News new | ask | show | jobs
by legosexmagic 1245 days ago
thats how it works. its called a swapchain and its usually more than one texture. to avoid artifacts.
1 comments

Setting up a correct swapchain, with correct frame timing and no microstutter, across Windows, Linux and macOS is a very non-trivial task though. This was no issue on 8-bit home-computers, and where it's basically a handful lines of assembly code to install a vsync interrupt service routine.

(modern GPUs gained performance at the cost of latency, but a lot of the complications are also just pointless over-engineering on the software side)