mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-11 19:14:00 +00:00
Disable producer throttling on the video surface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user