# Performance question: is modulo a taxing operator?

**URL:** <https://forum.kirupa.com/t/performance-question-is-modulo-a-taxing-operator/305425>\
**Category:** Uncategorized\
**Created:** [February 25, 2010, 2:00am UTC](https://forum.kirupa.com/t/performance-question-is-modulo-a-taxing-operator/305425 "2010-02-25T02:00:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [February 25, 2010, 2:00am UTC](https://forum.kirupa.com/t/performance-question-is-modulo-a-taxing-operator/305425/1 "2010-02-25T02:00:15Z")

</div>

That’s pretty much it. If modulo is being executed within an ~300 iteration loop every frame, is it really taxing? If it is, is there an optimized way to produce the same result as modulo? This is an offline project, so I have all the memory I need, I’m more concerned about frame rate performance.

thanks for any input!
