I am writing a 3d editor for a game in opengl using LWJGL. I only want the editor to render when i need it to. However if you only render once and keep calling Dislplay.update() the image glitches and if you only call Dislplay.update() occasionally instead of in a while loop the program stops responding and windows turns it off. Does anyone know why this is or a workaround for this?
I am writing a 3d editor for a game in opengl using LWJGL. I
Share
I accually figured it out myself after playing around a bit. Everytime you update the display it swaps buffers so either manually swap buffers every second update so it keeps using the same buffer or render twice; once for each buffer.
For example if you had a render() method to render your image you would do this:
and then you would update the display normally.