mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-20 15:27:18 +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:
1 parent
dd82573d08
commit
5360d6c9b2
1 file changed
+1
@@ -137,6 +137,7 @@ public class CpuDecoderRenderer implements DecoderRenderer {
|
||||
|
||||
nextFrameTime = computePresentationTimeMs(frameRateTarget);
|
||||
AvcDecoder.redraw(renderTarget);
|
||||
System.gc();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user