Hello Guest

Calling Display.destroy() times out the gfx driver

  • 2 Replies
  • 2069 Views
Calling Display.destroy() times out the gfx driver
« on: February 01, 2015, 22:45:10 »
Hi,

Sometimes when I call Display.destroy() it takes more than 2 seconds before it returns, causing the graphics card driver to time out. What is the destroy function doing that could cause that, and is it a bug or is there a way I can work around it?

Mike

*

Offline abcdef

  • ****
  • 320
Re: Calling Display.destroy() times out the gfx driver
« Reply #1 on: February 02, 2015, 10:01:14 »
Try using LWJGL3, I think GLFW is more consistent in how it handles the window creation / removal. With out more details its very hard to comment on your specific issue.

The code is on github

https://github.com/LWJGL/lwjgl

Go take a look and see if you can debug where in the code the issue could occur. You will probably need to look at the OS specific code and see what calls are made.

Re: Calling Display.destroy() times out the gfx driver
« Reply #2 on: February 02, 2015, 11:16:51 »
I'll add the source of LWJGL and see if I can see what takes so long.

If anyone experienced the same and worked around it I'd be happy to hear about it :)

I will switch to LWJGL3 somewhere down the line, but I wasn't planning on doing it for another couple of months.

Mike