Hello all,
So I found out that by removing those two lines of codes : "glfwSetInputMode(gameWindow, GLFW_CURSOR, GLFW_CURSOR_HIDDEN);" and "glfwSetInputMode(gameWindow, GLFW_CURSOR, GLFW_CURSOR_NORMAL);", I can remove lag spites happening randomly.
So can you explain why those calls creates random lag spites ? This wasn't the case in the old LWJGL library.
I'm using those functions in the main rendering loop.
After I have a problem with some code in my engine :
- How can I get the current pressed key on the keyboard ?
- How can I get the position of the mouse wheel ?
- How can I get the button number of my mouse in GLFW ?
- How can I lock the cursor in the window itself ? I can hide it, but it can still leave the window, I want it to never be able to leave the window, how to do that ?
- How can I switch on/off fullscreen like on the old LWJGL with Display.setFullscreen ?
Oh and by the way, the new LWJGL allows more things, but still needs much work and maybe you should add an option to not include the part of the little library, because for some guys the library is useless (like me)...
And again please excuse me for images not working on signature/profile. We're having some .htaccess problems with our host (
www.sldt-team.net)
Thanks by advance,
Yuri.