Hi all,
I recently tried converting my editor to make use of jme3-lwjgl3, however I am noticing slow behavior in general after switching. I am struggling to pin point the exact cause, but it is very frustrating. Here is a video of the results when comparing the exact same editor, just with different jme3-lwjgl’s.
Also note, I am using jME3.8.1-stable, however I did notice this a while ago on the older versions as well.
Does anyone know what could be the cause or have seen this before?
I think with lwjgl3, the Java Swing wiring is less efficient. That’s just from memory of the various conversations. (It used to not work at all, I guess, so working-but-slowly is at least an improvement.)
This is one of the reasons I’m still on lwjgl2 because I have some Swing-integration apps and I understand this still does not work well on lwjgl3.
Yes I am aware of the AWT/Swing problems. The main thing for me is, I am not using swing or AWT and therefor I do not understand why this is a problem.
I am using clean jME3.
At this point, LWJGL v2 isn’t maintained. It won’t work on ARM-based (Apple Silicon) Macs. It also won’t work with v3-based add-on libraries like MonkeyWrench. I suspect it also won’t work with Wayland, but I haven’t tested.
OH! I thought it was a swing-integrated JME window.
Never mind my noise then.
Is the slowness just in the event processing or is the frame rate actually slower? Like, if you animated the scene would it animate smoothly and it’s just choppy events?
I did some more tests now, and noticed that the frame rate drops extremely when I move the mouse really quickly. It goes from about 400fps to under 10fps.
This is very concerning and I do not know if it could be something on my side, jME’s side or LWJGL’s side.
I do know that event handling was one of the things that changed, too. (with lwjgl3) …so maybe something in there is tripping JME up in delivery.
I don’t really know the best way to find the source of the issue.
You could see if it still happens when you are not catching the events… like frame rate stays constant when just dragging the mouse without it doing anything or something. If frame rate still drops then at least you know it’s lower level… if frame rate doesn’t drop then it might be some weird interaction with event handling and frame updates.
I’m kind of at a loss and have so far no real knowledge of lwjgl3 myself.