I have come across some recent lag spikes in a game I have been developing. It is consistent, happens around the same time. Using the java profiler jvisualvm I have found it occurs at the same time a particular thread seems to restart or something (AWT-EventQueue-0):
Other than that, there is no visible cause, not in heap usage, processor use, memory space, or method uses. It will sometimes cause a ConcurrentModificationException
when drawing my array of objects, but this should only happen with substantial lag, and my game is hardly intensive.
I don't recall performing any recent changes to the project, however I have carried out the following recently:
- Updated java to the latest version
- Downloaded latest version of JDK7 (though it is not being used in this project)
- Fixed bug with eclipse that occurred as a result of installing JDK7 (removed 256m limit in eclipse.ini)
I am running Eclipse Indigo-service-1 on 32 bit XP. My processors are barely used.