Rendering problems with Java LWJGL
- by pangaea
I'm new to rendering and so I don't know if I can speed up the code or that what I'm doing is bad.
This is what it looks like
But, if I have say 100-200 triangles everything is fine. Yet, when I get to 400 triangles it becomes very laggy. At 1,000 triangles it becomes 5fps at max. Also, when I try to close it everything becomes extremely laggy and the game breaks my computer. Is this normal?
The code is here
http://pastebin.com/9N6qdEbd game
http://pastebin.com/fdkSrPGT mobs
I haven't even adding collision detection.