small bug fixes

This commit is contained in:
austin 2021-11-06 15:50:12 -04:00
parent fc335b8df2
commit e506dc9aa0
2 changed files with 6 additions and 0 deletions

View File

@ -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");

View File

@ -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();