Hi, I have a problem with my chunk rendering system.
I have a class that allows me to create chunks. To do so I simply store in a variable a Chunk object and then in my Renderer.java I render it.
The problem is: when I see the chunks from a certain position, all runs smoothly. But when I try to look behind me, I experience an enormous fps drop.
Screenshots:
This is normal
This is when I try to look behind me. (Note the lag)
What did I wrong? I’m new to the OpenGL world
If you need some other code please tell me.
Thanks in advance
Chunk.java (http://pastebin.java-gaming.org/70ac744880116)
Renderer.java (http://pastebin.java-gaming.org/0ac745881061e)