mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 03:23:07 +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:
parent
dd82573d08
commit
5360d6c9b2
@ -137,6 +137,7 @@ public class CpuDecoderRenderer implements DecoderRenderer {
|
||||
|
||||
nextFrameTime = computePresentationTimeMs(frameRateTarget);
|
||||
AvcDecoder.redraw(renderTarget);
|
||||
System.gc();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user