I've really been looking into frame rate in my games for some time, and now its really bugging me. I've been doing many different methods of keeping frame rate, and I can't find a single one that is effective and precise. This is the one I'm using right now:
http://pastie.org/private/vows8sgvcrkeuixsgvj3gI've also noticed that when entities disappear from the screen(they're still being updated and rendered, just not visible to you), the consistency of the frame rate starts improving.
So, I'm looking for a few things here:
1. What is the best way to handle frame rate?
2. A good way to handle and store entities. I use an ArrayList and I just loop through them two times to render and update.
Its been really bugging me for awhile, especially when there are about 50 entities on the screen.
Please help D: