mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-03 22:46:14 +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;
|
||||
|
||||
@Override
|
||||
public void setup(int width, int height, Object renderTarget, int drFlags) {
|
||||
this.targetFps = 30;
|
||||
public void setup(int width, int height, int redrawRate, Object renderTarget, int drFlags) {
|
||||
this.targetFps = redrawRate;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user