The apps' on_render function is called per window but sometimes it is very useful to know if there is no more rendering for the current frame. So very window has rendered.
This allows to cleanup data that is required to be used per window but would otherwise be tricky to figure when to handle the data because the user does not know how many windows will be rendered.
So. The app needs a on_frame_done event which is called when all windows just finished rendering.
The apps'
on_render
function is called per window but sometimes it is very useful to know if there is no more rendering for the current frame. So very window has rendered.This allows to cleanup data that is required to be used per window but would otherwise be tricky to figure when to handle the data because the user does not know how many windows will be rendered.
So. The app needs a
on_frame_done
event which is called when all windows just finished rendering.