# Resize event for sketch without draw() loop

**URL:** <https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462>\
**Category:** Coding Questions\
**Created:** [April 17, 2021, 11:26pm UTC](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462 "2021-04-17T23:26:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![TechnicJelle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/technicjelle/32/15033_2.png) [@TechnicJelle](https://discourse.processing.org/u/TechnicJelle)\
**Post date:** [April 18, 2021, 9:29am UTC](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462/5 "2021-04-18T09:29:02Z")

</div>

We’ve thought about doing this too, but ultimately decided against it, because of the fact that the `draw()` still runs every frame. We want absolutely nothing happening at all when the sketch is not being interacted with and a loop running 60 times a second is not nothing at all.  
Maybe we could set the `frameRate` to 60 is the mouse is inside the sketch and to a really low number if it’s not, but that also kind of defeats the purpose.

---

_[View the full topic](https://discourse.processing.org/t/resize-event-for-sketch-without-draw-loop/29462)._
