# All sketches heavily stuttering every 5-10 seconds

**URL:** <https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384>\
**Category:** Processing\
**Created:** [November 9, 2018, 3:44pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384 "2018-11-09T15:44:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lokus](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lokus](https://discourse.processing.org/u/lokus)\
**Post date:** [November 9, 2018, 3:44pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384/1 "2018-11-09T15:44:55Z")

</div>

I have no idea what’s causing this, it doesn’t have anything to do with the code. Even the demo sketches are affected in exactly the same way. I’ve tried a clean java install and increasing available memory to 1024MB in the PDE, but that had no effect at all. My system should be able to handle these sketches without breaking a sweat, and has done so on in the past on the same version (3.4).

Does anyone know what could be causing this kind of behaviour? I’d really like a second opinion before resorting to a full system wipe.

---

<div class="post-metadata">

**Author:** ![clankill3r](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/clankill3r/32/1098_2.png) [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Post date:** [November 9, 2018, 5:07pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384/2 "2018-11-09T17:07:24Z")

</div>

What OS do you run?  
What are your system specs?

---

<div class="post-metadata">

**Author:** ![lokus](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lokus](https://discourse.processing.org/u/lokus)\
**Post date:** [November 9, 2018, 5:58pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384/3 "2018-11-09T17:58:34Z")

</div>

Windows 10 64bit  
AMD PhenomII X4 970  
AMD Radeon R9 270X  
8GB DDR3

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [November 11, 2018, 5:59pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384/4 "2018-11-11T17:59:42Z")

</div>

Brainstorm:

Have you inspected your current processes with process utilities? Hopefully you don’t have bitcoin miner malware installed, but something else could be hitting your processor hard every few seconds – a syncing utility that has hung up, like Drive or Dropbox, video streaming, a hung Chrome tab running the background, etc…

> **[Sysinternals Process Utilities - Windows Sysinternals](https://docs.microsoft.com/en-us/sysinternals/downloads/process-utilities)**
>
> Windows Sysinternals process utilities

Are you running an antivirus program? Does temporarily enabling / disabling it change the stuttering? If you reboot and run Processing without launching any other applications, does it stutter?

---

<div class="post-metadata">

**Author:** ![lokus](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lokus](https://discourse.processing.org/u/lokus)\
**Post date:** [November 11, 2018, 7:46pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384/5 "2018-11-11T19:46:25Z")

</div>

Thanks for the help, but I’ve already tried all of that. No malicious processes running, the sketch still stutters running on a fresh boot, and antivirus doesn’t make a difference.

The weird thing is that it’s just processing that’s stuttering, nothing else. My C++ port of the sketch, resource intensive games, and even other java applications are running just fine. I’ve already done a clean install of both java and processing, but to no avail.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [November 11, 2018, 8:02pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384/6 "2018-11-11T20:02:35Z")

</div>

> [@lokus](#):
>
> AMD PhenomII X4 970  
> AMD Radeon R9 270X

Is it a P2D / P3D sketch – that is, OpenGL? If so, you could try running a processing-intensive JAVA2D sketch to see if you get the same stuttering – that might narrow it down to something about Processing and the graphics card.

**Edit** – oh, I just saw you said demo sketches are similarly affected. Including all renderer types?

---

<div class="post-metadata">

**Author:** ![lokus](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@lokus](https://discourse.processing.org/u/lokus)\
**Post date:** [November 11, 2018, 11:08pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384/7 "2018-11-11T23:08:40Z")

</div>

as far as i can tell the stutter is exclusive to 2d rendering. 3d demos like moveEye are running fine but my 2d sketch and very basic demos like mouse2d are stuttering.
