LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: JamesYeoman on November 16, 2016, 16:42:49

Title: LWJGL 2 to LWJGL 3 transition
Post by: JamesYeoman 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?
Title: Re: LWJGL 2 to LWJGL 3 transition
Post by: kappa on November 16, 2016, 16:53:33
Yeh have a read of the LWJGL2 to LWJGL3 migration guide (https://github.com/LWJGL/lwjgl3-wiki/wiki/2.6.6-LWJGL3-migration).
Title: Re: LWJGL 2 to LWJGL 3 transition
Post by: JamesYeoman on November 16, 2016, 17:40:35
Quote from: kappa on November 16, 2016, 16:53:33
Yeh have a read of the LWJGL2 to LWJGL3 migration guide (https://github.com/LWJGL/lwjgl3-wiki/wiki/2.6.6-LWJGL3-migration).

Thanks. That could work decently.
Title: Re: LWJGL 2 to LWJGL 3 transition
Post by: seventh-chord 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