LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 628 forks source link

Does LWJGL move any data off heap #881

Closed Danjhop4 closed 1 year ago

Danjhop4 commented 1 year ago

Question

If you use a non direct buffer does it move it off heap I have a program showing 500 so mb and gc spikes

knokko commented 1 year ago

No: you can't use non-direct buffers in any LWJGL functions. LWJGL doesn't move any of your byte buffers.

Danjhop4 commented 1 year ago

No: you can't use non-direct buffers in any LWJGL functions. LWJGL doesn't move any of your byte buffers.

Ok