mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Hint the GC to run at the completion of each frame. This forces concurrent garbage collection which means that the likelyhood of a long GC pause while other threads are running is lower.
This commit is contained in:
@@ -137,6 +137,7 @@ public class CpuDecoderRenderer implements DecoderRenderer {
|
|||||||
|
|
||||||
nextFrameTime = computePresentationTimeMs(frameRateTarget);
|
nextFrameTime = computePresentationTimeMs(frameRateTarget);
|
||||||
AvcDecoder.redraw(renderTarget);
|
AvcDecoder.redraw(renderTarget);
|
||||||
|
System.gc();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user