mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-24 00:56:42 +00:00
Use the stream's frame rate as the redraw rate instead of always refreshing at 30 FPS
This commit is contained in:
Binary file not shown.
@@ -29,8 +29,8 @@ public class SwingCpuDecoderRenderer implements VideoDecoderRenderer {
|
|||||||
private static final int WAIT_CEILING_MS = 8;
|
private static final int WAIT_CEILING_MS = 8;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup(int width, int height, Object renderTarget, int drFlags) {
|
public void setup(int width, int height, int redrawRate, Object renderTarget, int drFlags) {
|
||||||
this.targetFps = 30;
|
this.targetFps = redrawRate;
|
||||||
this.width = width;
|
this.width = width;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user