forked from n64decomp/sm64
-
Notifications
You must be signed in to change notification settings - Fork 10
Performance Optimization: Using Thumb Mode #34
Copy link
Copy link
Open
Description
Currently all the code is stored in main ram, and the arm9 core stalls when the arm7 core is reading from main ram. If the code was compiled in Thumb mode (and possibly with size optimizations, -Os/-Oz) it could require fewer ram accesses to execute the same code, and therefore reduce the performance hit from the low main ram and the audio. From testing I the code size seems to shrink to about 60% of the original size using thumb and -Os. I did not notice a significant change in performance, but did not perform the most detailed of tests, importantly this did not slow down the program at all. This would be a simple change to the Makefile.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels