I couldn’t find a solution here on the forums, so here goes:
In my game, I experience rendering hiccups, or frametime stutters. It’s based on Sim-eth-es - and the hiccup is there in the version on Github without modifications (picture from @pspeed’s Simsiilica example):
I’d agree with the GC cause. But I wouldn’t know how to ‘fix’ it. There’s nothing going on in the Example game except the game loop. There’s no logic, no creating things I’m new to optimizing java applications - what key words do I google ?
Well, ask the right things to get the right answer
Run the Memory Profiler and see what the memory does. Most of the time this is resolved by setting a higher heap size (-Xmx) so the GC has to be run lesser times.
If this doesn’t help (the stuttering only occurs later / rarer) you would have a memory leak, in Zay-ES this always is not calling the .cleanup() on an EntitySet
You could change the GC to an implementation which does not stop the program from executing (ConcurrentSweepGC), however that is much work to fine tune stuff which might not help if 1. or 2. are the cause
All of the graphs seem to indicate that it is rendering related… and this kind of confirms it. I wonder if other JME games exhibit the same issue at high resolutions if you are micro-watching the frame timings.
Sim-eth examples will be sensitive to render burps because of how it’s timing things, I guess.
Sorry… I missed it because it was clipped in the forum-included part and super tiny.