Vadru93 / LevelMod

THPS3 LevelMod
Other
20 stars 2 forks source link

Optimize static checksum access #53

Closed Vadru93 closed 1 year ago

Vadru93 commented 3 years ago

As noted in 6945e7e7 there are lots of access to static checksum using strings instead of checksum. In later Tony Hawk games this was changed to improve performance, not sure exactly how much this will do on current hardware, but it should improve little bit. Also all functions calling checksum have 1 extra unnesesary jump that can be removed to reduce call overhead and improve CPU cache.