Closed Arnaud6128 closed 4 years ago
This optimization is actually too minor to justify a breaking change at this step. cpct_drawSpriteMasked
is actualy safe to use from ROM, and your proposed change makes it not valid for that usage. Existing code using this function will break due to this change and actual benefit is of 7 microseconds in total (previous measurements were incorrect, I've made them new).
I think this change is not justified at this development stage for 1.5. Prefer to maintain previous version and not break existing code.
However, I will update new time calculations. Thanks to your proposal I have had change to review and fix them: they were incorrect.
Thanks @Arnaud6128 :)
Replace use of IX reg by self-modifing code to save Sprite Width