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

Simplify GameLoop using a Ticker #302

Merged
merged 2 commits into from
May 7, 2020
Merged

Simplify GameLoop using a Ticker #302

merged 2 commits into from
May 7, 2020

Conversation

erf
Copy link
Contributor

@erf erf commented Apr 27, 2020

Simplify the GameLoop class using a Ticker.

I believe it's essentially doing the same as before as it is an abstraction on SchedulerBinding.scheduleFrameCallback.

But please do some testing..

@erf erf changed the title Simplify gameloop Simplify GameLoop using a Ticker Apr 27, 2020
@erf erf changed the base branch from master to develop April 27, 2020 00:55
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this shows to be equivalent of the earlier behaviour I think it looks like a really nice clean-up!

@luanpotter
Copy link
Member

This is a major infrastructural change. Have you tested this well and how it performs compared to the old method?

@erf
Copy link
Contributor Author

erf commented May 1, 2020

I've only tested it briefly, but performance seem on par, and pausing, seem to work as before.

Copy link
Member

@erickzanardo erickzanardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luanpotter I have just tested this, and everything seems to work according. I have run a couple of examples, including the particle system, which I consider to be the most resource consuming example we have, and perfomance as the same, the pause and resume engine also worked fine.

LGTM

@luanpotter
Copy link
Member

I tested this on BGUG and it seems to be working well! I think we can merge it and move forward with it :)

@luanpotter luanpotter merged commit 669bbfc into flame-engine:develop May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants