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

Python frame speedup #196

Merged
merged 2 commits into from
Jul 18, 2016
Merged

Python frame speedup #196

merged 2 commits into from
Jul 18, 2016

Conversation

DaveyBiggers
Copy link
Member

This fixes #187, amounting to a 100x speedup, which is nice.
Integration tests are all passing, but I shall leave a stress test running over the weekend to check this change doesn't introduce any memory leaks.

@timhutton
Copy link
Contributor

Fantastic!

@DaveyBiggers DaveyBiggers merged commit af30e1a into master Jul 18, 2016
@DaveyBiggers
Copy link
Member Author

Set a variant of the MazeRunner running that attempted to save every frame to disk. Over the weekend it saved around 3.7 million pngs, at 860x480 pixels each, amounting to 438GB of data. Frame rate stayed solid, memory use stayed level, and the time to save each png seemed to remain around the same (between 50-60ms). No crashes, nothing degrading, and nothing caught fire. I think it's safe to merge...

@DaveyBiggers DaveyBiggers deleted the pythonFrameSpeedup branch July 18, 2016 11:47
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.

Converting frame.pixels to usable form is too slow in Python
2 participants