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

mode 7 draw algo perf improvments #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hpnok
Copy link

@hpnok hpnok commented Feb 8, 2020

👋 following the thread you've posted about how to do faster pixel manipulation here some suggestions on how you can improve your code.

  • On my somewhat old PC if I run the current build from master i got about 9.7 fps
  • In a first time I removed duplicated calculations and reduced the amount of dereferencing per frame which nearly doubled my frame rate (17.5 fps)
  • I then did a quick implementation with surfarray/numpy and got about 80 fps!

I put a switch in the main if you want to compare with and without the surfarray implementation

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.

1 participant