---
title: NSOpenGLCPMPSwapsInFlight
framework: appkit
role: symbol
role_heading: Global Variable
path: appkit/nsopenglcpmpswapsinflight
---

# NSOpenGLCPMPSwapsInFlight

The number of frames that the multithreaded OpenGL engine can process before stalling. The default value is 1. New frames are queued when the application calls the flushBuffer() method. A larger number may improve overall performance, but adds latency between when a frame is rendered and when a frame is displayed. Interactive applications should leave this value at the default.

## Declaration

```occ
static const NSOpenGLContextParameter NSOpenGLCPMPSwapsInFlight;
```

## See Also

### Deprecated

- [NSOpenGLCPSwapInterval](appkit/nsopenglcpswapinterval.md)
- [NSOpenGLCPSurfaceOrder](appkit/nsopenglcpsurfaceorder.md)
- [NSOpenGLCPSurfaceOpacity](appkit/nsopenglcpsurfaceopacity.md)
- [NSOpenGLCPSurfaceBackingSize](appkit/nsopenglcpsurfacebackingsize.md)
- [NSOpenGLCPReclaimResources](appkit/nsopenglcpreclaimresources.md)
- [NSOpenGLCPCurrentRendererID](appkit/nsopenglcpcurrentrendererid.md)
- [NSOpenGLCPGPUVertexProcessing](appkit/nsopenglcpgpuvertexprocessing.md)
- [NSOpenGLCPGPUFragmentProcessing](appkit/nsopenglcpgpufragmentprocessing.md)
- [NSOpenGLCPHasDrawable](appkit/nsopenglcphasdrawable.md)
- [NSOpenGLCPSwapRectangle](appkit/nsopenglcpswaprectangle.md)
- [NSOpenGLCPSwapRectangleEnable](appkit/nsopenglcpswaprectangleenable.md)
- [NSOpenGLCPRasterizationEnable](appkit/nsopenglcprasterizationenable.md)
- [NSOpenGLCPStateValidation](appkit/nsopenglcpstatevalidation.md)
- [NSOpenGLCPSurfaceSurfaceVolatile](appkit/nsopenglcpsurfacesurfacevolatile.md)
