3 ms·
Swap buffers is done “automatically” by the browser after the drawing loop
by baudaux 3y ago
Swap buffers is done “automatically” by the browser after the drawing loop
- flohofwoe 3y agoYes, but you'd want your per-frame code to be called as early as possible after a swap so that your code has as much time as possible to do work without missing the next swap (YMMV of course if there's a pipeline of buffered frames waiting for presentation - but this should be kept low to reduce button-to-screen latency).
- baudaux 3y agoYou can do what you want during a next event loop (timer, key press, …)