Game gets slower

And another word of advice: check your assumptions. You state that the game gets slower over time, but this is basically an assumption over the cause of the problem: that it has something to do with something happening over time. Such an assumption could make you blind to other causes of the problem. You should check this, try to measure it objectively. E.g. make fps measurements every few secs and create a table showing fps over time, or something similar.

In other words: be really sure what the problem is before looking for the solution. Maybe the problem is: whenever I walk far from my starting point the game slows down, or: when I start up fraps to record the slowdown the game slows down :slight_smile:

P.s. I’ve scanned through your github code but could not find anything obvious

The baseline reading idea is a good one. I think I’ll implement some kind of debugging framework that let’s me decide what data I want to take a look at.

I think my assumption is right. The heap monitor shows nearly the same curve every run no matter how I move around, where I look (that was one of my early assumptions) and even if I don’t move at all.
I implement the FPS counter yesterday. The weird thing is, that since I did this, it seems to be better. The game doesn’t get slower (or at least not that much) which doesn’t make any sense because all I did was to add code that only counts the fps. The regulation still is handled by Display.sync() and I don’t think that an overhead increases speed :stuck_out_tongue:

Also thank you for your effort to look at my code! =)