Move some code around to avoid costly calls to modf().
This improved performance of the sprite benchmark by 10%.
Authored by: david_costanzo 2022-01-17
Parent: [r5869]
Child: [r5871]