I am creating a simple pet simulator, it is my first project created for an assignment. Most of the functionality is working fine, I have re-written it many times as I have gotten better at setting out projects, however while adding in a timer I have encountered a massive floor.
After running the project my game seems to work fine, images are being rendered (Perhaps not the most efficiently) and my timer/FPS counter works well. However ever since I have added this timing/FPS code, it has been slowly getting slower and slower in FPS and then freezing up and crashing.
I followed Ninja Cave's timing tutorial for LWJGL. http://ninjacave.com/lwjglbasics4
Here is my source code, not all classes are included as there are quite a few, but can if need be. I have tried to just include the rendering focussed ones.
Main Class http://pastebin.com/BpkHHnnj
Rendering Class http://pastebin.com/QtJeYw1a
Texture Loader Class http://pastebin.com/RX5iDXQm
Main Game State Class http://pastebin.com/pvgDLkeM
The Pet Class http://pastebin.com/VF6cq9S4
Thanks