Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by anal_reactor

2 months ago

Long shot, but maybe if the value is small, then this loop could be faster than division.

1 comment

anal_reactor

Reply

matsemann  2 months ago

If 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.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities