Rendering problems with Java LWJGL

Posted by pangaea on Game Development See other posts from Game Development or by pangaea
Published on 2013-06-25T16:15:54Z Indexed on 2013/06/25 16:30 UTC
Read the original article Hit count: 284

Filed under:
|
|

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 enter image description here

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.

© Game Development or respective owner

Related posts about java

Related posts about lwjgl