Hello Guest

LWJGL 2 to LWJGL 3 transition

  • 3 Replies
  • 4837 Views
LWJGL 2 to LWJGL 3 transition
« on: November 16, 2016, 16:42:49 »
I am familiar with LWJGL 2 and want to be able to use LWJGL 3. Is there anything that will help me transitioning to the new api?

*

Offline kappa

  • *****
  • 1319
Re: LWJGL 2 to LWJGL 3 transition
« Reply #1 on: November 16, 2016, 16:53:33 »
Yeh have a read of the LWJGL2 to LWJGL3 migration guide.

Re: LWJGL 2 to LWJGL 3 transition
« Reply #2 on: November 16, 2016, 17:40:35 »
Yeh have a read of the LWJGL2 to LWJGL3 migration guide.

Thanks. That could work decently.

Re: LWJGL 2 to LWJGL 3 transition
« Reply #3 on: November 16, 2016, 20:30:56 »
One thing the guide does not mention is new system for allocating byte buffers in lwjgl 3. While lwjgl 2's BufferUtils still exists, you should really consider switching to the new systems, as they perform much better and do not create garbage collection problems (the source of many framerate stuttering issues). They are explained in part 2, 3 and 4 of this intro: https://github.com/LWJGL/lwjgl3-demos/tree/master/src/org/lwjgl/demo/intro