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

Minor FPS gains #2

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

Minor FPS gains #2

wants to merge 10 commits into from

Conversation

nstbayless
Copy link

@nstbayless nstbayless commented Feb 15, 2024

summary (measured on cv2: belmont's revenge):

  • ~5 fps gain from special casing PC < 0x8000 for mch_memory_fetch_PC_2
  • ~1 fps gain from using arithmetic rather than double-indirect for accessing rom
  • ~1 fps gain from pretending jr $FE costs an extra 20 cycles
  • ~ 2 fps gain from using armclang instead of gcc 9.3 (not part of PR)

17 -> 26 fps in opening screen of cloud castle.

Also, I (hopefully) improved the performance of the timer. But cv2 doesn't use the timer, so I haven't checked.

I suggest squash-rebase

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