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

Unusually high CPU #170

Closed
pvcraven opened this Issue Dec 23, 2017 · 3 comments

Comments

Projects
1 participant
@pvcraven
Owner

pvcraven commented Dec 23, 2017

Bug Report

Arcade shouldn't idle with such high CPU

Actual behavior:

High CPU for simple window.

Expected behavior:

Not high CPU for simple window.

Steps to reproduce/example code:

This code is pyglet only:

import pyglet

def main():
    pyglet.window.Window(500, 500)
    pyglet.app.run()

if __name__ == "__main__":
    main()

It seems to run without high CPU. The code below should be the same thing in Arcade, just fronting the Pyglet library. But it can run with high CPU. (Sometimes it doesn't. ??)

import arcade

def main():

    arcade.Window()
    arcade.run()

if __name__ == "__main__":
    main()
@pvcraven

This comment has been minimized.

Show comment
Hide comment
@pvcraven

pvcraven Dec 23, 2017

Owner

Seems to have something to do with setting the opengl context.

Owner

pvcraven commented Dec 23, 2017

Seems to have something to do with setting the opengl context.

@pvcraven

This comment has been minimized.

Show comment
Hide comment
@pvcraven

pvcraven Dec 23, 2017

Owner

The application currently defaults to setting the update rate to set_update_rate(1 / 80). If the update rate is instead set to set_update_rate(1 / 60) or below, CPU stays near idle. Going smaller than 1/60 quickly runs the CPU rate up.

Owner

pvcraven commented Dec 23, 2017

The application currently defaults to setting the update rate to set_update_rate(1 / 80). If the update rate is instead set to set_update_rate(1 / 60) or below, CPU stays near idle. Going smaller than 1/60 quickly runs the CPU rate up.

@pvcraven pvcraven self-assigned this Dec 23, 2017

@pvcraven pvcraven added the bug label Dec 23, 2017

pvcraven added a commit that referenced this issue Dec 23, 2017

@pvcraven pvcraven added this to Done in Release 1.2.4 Dec 23, 2017

@pvcraven

This comment has been minimized.

Show comment
Hide comment
@pvcraven

pvcraven Dec 23, 2017

Owner

Fixed with release 1.2.4, released Dec-23-2017.

Owner

pvcraven commented Dec 23, 2017

Fixed with release 1.2.4, released Dec-23-2017.

@pvcraven pvcraven closed this Dec 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment