Skip to content

maximum speed for mainloop ? #373

@homepark1

Description

@homepark1

I'm using pgzero for a race game in linux. For testing, I need to run the whole race automatically.
Currently, with pgzero locked to 60FPS, it takes quite long.
So I edit game.py to run at 1000 FPS.
This works, but editing a framework file makes me feel bad :)

I tried to write my own mainloop by calling draw and update, but it throws an error, that no screen can be opened.

Question:
Can the FPS be made adjustable ?
Alternatively is there a simple way to replace the mainloop to get rid of the FPS-delay ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions