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:
Cameron Gutman 2013-11-24 19:32:50 -05:00
parent dd82573d08
commit 5360d6c9b2

View File

@ -137,6 +137,7 @@ public class CpuDecoderRenderer implements DecoderRenderer {
nextFrameTime = computePresentationTimeMs(frameRateTarget);
AvcDecoder.redraw(renderTarget);
System.gc();
}
}
};