What was the idea behind doing this
every frame
1 2 3 4 5 6 7 8
| try { Display.releaseContext(); } catch (LWJGLException e) { e.printStackTrace(); } Game game = new Game(); game.play(); |
Why are you using threads?! Why would you create them every frame?! Why would you use a separate thread for updating and rendering?
Why do you have a game loop within your game loop?!?!!?! Why are you repeating all that code!?
Your code baffles me...
I think you'll have a hard time learning OpenGL and LWJGL if you have no idea how to program in Java.
