mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-20 07:24:42 +00:00
Disable producer throttling on the video surface
This commit is contained in:
1 parent
68adf9ecc9
commit
6d4c64a575
1 file changed
+5
@@ -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