# Help with delay/millis without influencing the framerate

**URL:** <https://discourse.processing.org/t/help-with-delay-millis-without-influencing-the-framerate/8153>\
**Category:** Coding Questions\
**Created:** [February 6, 2019, 12:19pm UTC](https://discourse.processing.org/t/help-with-delay-millis-without-influencing-the-framerate/8153 "2019-02-06T12:19:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [February 6, 2019, 3:54pm UTC](https://discourse.processing.org/t/help-with-delay-millis-without-influencing-the-framerate/8153/5 "2019-02-06T15:54:32Z")

</div>

You might also want to have a look at [Inaccurate time intervals for a Metronome](https://discourse.processing.org/t/inaccurate-time-intervals-for-a-metronome/2463/10?u=neilcsmith)

The code looks good apart from the auto restart with `startT = millis()` - this will accumulate errors, although may be what you want - fixed rate or fixed delay?

---

_[View the full topic](https://discourse.processing.org/t/help-with-delay-millis-without-influencing-the-framerate/8153)._
