mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 15:27:18 +00:00
Use the stream's frame rate as the redraw rate instead of always refreshing at 30 FPS
This commit is contained in:
1 parent
9d24f8be14
commit
d4995a1f27
2 files changed
+2
-2
No files matched your search
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