Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the central animation loop out of the Scene class to a separate class with one loop for all scenes. #13

Closed
trusktr opened this issue Apr 18, 2016 · 0 comments

Comments

@trusktr
Copy link
Member

trusktr commented Apr 18, 2016

Each scene currently has it's own animation loop. Instead, move that logic out into a separate class shared with all nodes and scenes, then have nodes register render tasks onto the singleton.

Having a central loop improves performance by reducing function calls and animation frames. Will also separate concerns away from the Scene class (cleaner code).

@trusktr trusktr changed the title Move the central animation loop out of the Scene class to a separate class for all scenes. Move the central animation loop out of the Scene class to a separate class with one loop for all scenes. Apr 18, 2016
@trusktr trusktr modified the milestone: Finish then make real demos. Apr 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant