# Processing (Java Core version) sometimes lags

**URL:** <https://discourse.processing.org/t/processing-java-core-version-sometimes-lags/22517>\
**Category:** Processing\
**Created:** [July 9, 2020, 6:52pm UTC](https://discourse.processing.org/t/processing-java-core-version-sometimes-lags/22517 "2020-07-09T18:52:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moritz](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Moritz](https://discourse.processing.org/u/Moritz)\
**Post date:** [July 9, 2020, 6:52pm UTC](https://discourse.processing.org/t/processing-java-core-version-sometimes-lags/22517/1 "2020-07-09T18:52:01Z")

</div>

Hi Guys,  
I’m doing a multiplayer coop / vs game and I’m having a big problem. sometimes everything works. My program has a constant 60 fps (check via eys and processing.framerate) and then there are these runs where Processing says my program has 60 fps but that’s not true. I used a VideoRecorder to check where the problem is, and found out that these runs are only redrawn \<50 times per second. How can I solve this ???  
Task manager:  
CPU: 39% (my game) | approx. 50% (total)  
RAM: 400 MB / 8 GB | 4.8 GB (total) (Firefox, eclipse, Co.)  
GPU: 19% | approx. 20% (total)

Thank you.

---

<div class="post-metadata">

**Author:** ![Moritz](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Moritz](https://discourse.processing.org/u/Moritz)\
**Post date:** [July 9, 2020, 7:20pm UTC](https://discourse.processing.org/t/processing-java-core-version-sometimes-lags/22517/2 "2020-07-09T19:20:57Z")

</div>

I found out that my video recorder isn’t recording 60 fps but the problem stays. It looks just like 30 - 50 fps
