# Optimizing PTZ Performance in Cluebase VMS

To achieve the **lowest possible latency** and the most responsive PTZ (Pan-Tilt-Zoom) control, please ensure your system is configured with the following settings:

1. **Set Camera Codec to H.264.** Configure your camera's primary stream to use the **H.264** video codec. While H.265 is efficient for storage, H.264 typically offers better compatibility and lower processing overhead for real-time control.
2. **Use WebRTC Protocol.** Ensure that **WebRTC** is selected as the streaming protocol in the Cluebase VMS interface. WebRTC is specifically designed for real-time communication and significantly reduces the delay compared to traditional protocols like WS or HLS.
    
    ![image.png](http://192.168.10.10:6875/uploads/images/gallery/2026-05/scaled-1680-/image.png)