Re: JOGL 2.0 (OpenGL/OpenGL-ES) backend for LibGDX
Posted by
jmaasing on
Mar 05, 2013; 7:00pm
URL: https://forum.jogamp.org/JOGL-2-0-OpenGL-OpenGL-ES-backend-for-LibGDX-tp4027689p4028513.html
krishnak wrote
public void update()
{
synchronized (eventQueue) {
eventQueueCopy.clear();
eventQueueCopy.addAll(eventQueue);
eventQueue.clear();
}
Maybe you have a lot of contention on the synchronized statement? Just for testing, try to remove that, it will not be thread safe and all that but just to see. I've hade some bad luck with performance using synchronized in some specific situations. Usually not because of the synchronized keyword as such but because of contention.