Frame rate limiter
fix all pow()s