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

CPU hog #47

Open
vinsci opened this issue Jun 23, 2017 · 1 comment
Open

CPU hog #47

vinsci opened this issue Jun 23, 2017 · 1 comment
Labels
type-enhancement A request for a change that isn't a bug

Comments

@vinsci
Copy link

vinsci commented Jun 23, 2017

This program is continuously a CPU hog for no good reason, both before a game is started, during the game as well as afterwards. Perhaps this is a problem with how StageXL is used: a quick profiling put requestAnimationFrame() at the top of the list, or a problem with StageXL itself, if it can't be used without hogging the CPU.

As a Dart example, this bad behavior risks spreading to many web apps unless corrected, leading to degraded device performance and energy waste.

Switching to another tab ends the CPU hogging.

@kevmoo
Copy link
Member

kevmoo commented Jun 27, 2017

Thanks for pointing this out!

I'm pretty sure it's the timer – we update every 10th of a second. I bet there is work we could do to improve this.

...or just update once a second until you complete?

Will keep this in mind.

@devoncarew devoncarew added type-enhancement A request for a change that isn't a bug and removed enhancement labels Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants