# How to disable VSync in Processing P3D

**URL:** https://discourse.processing.org/t/how-to-disable-vsync-in-processing-p3d/44547
**Category:** Processing
**Created:** [June 7, 2024, 1:54pm UTC](https://discourse.processing.org/t/how-to-disable-vsync-in-processing-p3d/44547 "2024-06-07T13:54:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Java.SourceForger](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/java.sourceforger/32/9831_2.png) [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)
#### Post date: [June 7, 2024, 1:54pm UTC](https://discourse.processing.org/t/how-to-disable-vsync-in-processing-p3d/44547/1 "2024-06-07T13:54:33Z")

</div>

Im not sure why this has to be so complicated but I cant find a way to disable vsync in processing.  
Specifically p3d.  
Any help?

---

<div class="post-metadata">

### Author: ![scudly](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/scudly/32/5597_2.png) [@scudly](https://discourse.processing.org/u/scudly)
#### Post date: [June 7, 2024, 3:51pm UTC](https://discourse.processing.org/t/how-to-disable-vsync-in-processing-p3d/44547/2 "2024-06-07T15:51:17Z")

</div>

You can set `frameRate(1000);` and then write it to the screen to see what you get.

If it’s still locked at 60 fps or whatever your monitor is using, then you might need to look at your video driver settings outside of Processing to see if they are locking all applications to the frame rate.

This code bounces around the high 900s for me on linux with nVidia after I disable “sync to vblank” in the nVidia driver settings app.

```auto
void setup() {
  size( 600, 400, P3D );
  frameRate(5000);
  textAlign(RIGHT);
  textSize(32);
}

void draw() {
  background( 0 );
  text( nf( frameRate, 0, 2 ), 300, 200 );
}

```
