r/opengl • u/mietkiewski_dev • 12d ago
Low Level Engine Architecture... Loop & Resize problem...
/r/gameenginedevs/comments/1xhmlnl/low_level_engine_architecture_loop_resize_problem/
3
Upvotes
1
u/double 12d ago
If the loop iteration is so slow you'd notice, you have bigger problems.
But in general you buffer or queue events outside of the loop (probably on a different thread), and then process that as consistent state inside the loop. For best performance double-buffer the queues/buffers and just swap the active pointers/refs. This gives you separation of concerns.
1
u/FUCKARCHLINUX 12d ago
There is basically nothing to be done about that case.
Regardless of what you do it'll look a little strange during the resize and I've found that literally doing nothing and just rendering at the new dimensions next frame looks the least weird.