aconstlink / motor

Software Framework for Audio/Visual/Interactive Real-Time Applications
MIT License
2 stars 0 forks source link

Notification when windows rendered for the current frame #57

Closed aconstlink closed 7 months ago

aconstlink commented 7 months ago

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.

aconstlink commented 7 months ago

New on_frame_end event. So the user could clean up per window data.