reduce the max time for render thread tasks
This commit is contained in:
@@ -87,6 +87,7 @@ public class RenderThreadTaskHandler
|
|||||||
|
|
||||||
// https://fpstoms.com/
|
// https://fpstoms.com/
|
||||||
int msPerFrame = 1000 / frameLimit;
|
int msPerFrame = 1000 / frameLimit;
|
||||||
|
msPerFrame /= 2; // divide the time in half so we can only impact half of the framerate at worst
|
||||||
this.runRenderThreadTasks(msPerFrame);
|
this.runRenderThreadTasks(msPerFrame);
|
||||||
}
|
}
|
||||||
private void runRenderThreadTasks(long msMaxRunTime)
|
private void runRenderThreadTasks(long msMaxRunTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user