Hydr8gon / sm64

A port of Super Mario 64 for the DSi
Creative Commons Zero v1.0 Universal
130 stars 9 forks source link

NDS Speed Boost #24

Open RetroGamer02 opened 1 year ago

RetroGamer02 commented 1 year ago

I made a few small changes to boost the speed a bit. Used some NDS BIOS Math and Hardware accelerated Math where I found possible and optimized with O3 instead of O2.

RetroGamer02 commented 1 year ago

I did not think about preserving the N64 build my apologies. As for replacing count with 4 it seems that swiFastCopy calculates size differently than memcpy. I will start adding the ifdefs in a bit.

1upus commented 1 year ago

Maybe you can fix ingame dialogs fonts too? It will be great!

riolubruh commented 1 year ago

BTW the optimization flag -Ofast is better than -O3 in some cases (I have also tested it and as far as I can tell there is no downside to doing so)