small bug fixes
This commit is contained in:
parent
fc335b8df2
commit
e506dc9aa0
@ -190,6 +190,7 @@ public class LoadingThread extends Thread {
|
||||
Globals.RENDER_FLAG_RENDER_SCREEN_FRAMEBUFFER = true;
|
||||
Globals.RENDER_FLAG_RENDER_UI = true;
|
||||
Globals.RENDER_FLAG_RENDER_BLACK_BACKGROUND = false;
|
||||
Globals.RENDER_FLAG_RENDER_WHITE_BACKGROUND = false;
|
||||
|
||||
LoggerInterface.loggerEngine.INFO("Finished loading");
|
||||
|
||||
@ -273,6 +274,7 @@ public class LoadingThread extends Thread {
|
||||
Globals.RENDER_FLAG_RENDER_SCREEN_FRAMEBUFFER = true;
|
||||
Globals.RENDER_FLAG_RENDER_UI = true;
|
||||
Globals.RENDER_FLAG_RENDER_BLACK_BACKGROUND = false;
|
||||
Globals.RENDER_FLAG_RENDER_WHITE_BACKGROUND = false;
|
||||
|
||||
LoggerInterface.loggerEngine.INFO("Finished loading");
|
||||
|
||||
|
||||
@ -102,6 +102,8 @@ public class Main {
|
||||
|
||||
public static Entity letterEntity;
|
||||
|
||||
static float targetFrameRate = 1000.0f/144.0f;
|
||||
|
||||
public static void main(String args[]){
|
||||
|
||||
//
|
||||
@ -333,6 +335,8 @@ public class Main {
|
||||
if(glfwWindowShouldClose(Globals.window)){
|
||||
running = false;
|
||||
}
|
||||
|
||||
sleep((int)(1000.0*Math.max(0.003, deltaTime-targetFrameRate)));
|
||||
}
|
||||
//Terminate the program.
|
||||
glfwTerminate();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user