3 ms·
Long shot, but maybe if the value is small, then this loop could be faster than division.
by anal_reactor 2y ago
Long shot, but maybe if the value is small, then this loop could be faster than division.
- matsemann 2y agoIf the code runs every frame, it's probably always small and does just one iteration once in a while when it wraps over the value.