JVM voxel game engine lag spikes

I'm experiencing short lag spikes after some voxel chunks have been created while not moving the camera around. I profiled the application: the JVM implementation uses a lot more memory, about 2.5 times more, compared to c++ exact implementation. Also, according to the profiler, the cause of the lag is the garbage collector. But there is nothing to collect ! All voxel data is static, references are kept, nothing gets allocated while profiling. I also turned off all the rendering to make sure that native memory is not leaking. Still lagging.

What could be it ? If you need any code, I'll add it here. (Writing in scala)


Ahh. I've been struggling with this problem for a few days. Java 8 update 92 and still parallel garbage collector as default ( . Switching to the newest G1 collector made it all nice and smooth. JVM option: -XX:+UseG1GC.

Category: performance Time: 2016-07-31 Views: 3

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.120 (s). 12 q(s)