maximum speed for mainloop ?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 611
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Description
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 ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading pgzero's existing mainloop and how game.py invokes draw and update; check how screen initialization is tied to the framework. Reproduce the 60 FPS delay and the no-screen error, then define a supported way to adjust FPS or run the loop without that delay. Done means the behavior is usable without editing framework files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- game-dev, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100