Disable producer throttling on the video surface

This commit is contained in:
Cameron Gutman
2026-09-01 21:02:04 -05:00
parent 68adf9ecc9
commit 6d4c64a575
@@ -2547,6 +2547,11 @@ public class Game extends Activity implements SurfaceHolder.Callback,
holder.getSurface().setFrameRate(desiredFrameRate,
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE);
}
// Disable producer throttling on the underlying surface for reduced latency
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.CINNAMON_BUN) {
holder.getSurface().setProducerThrottlingEnabled(false);
}
}
@Override