[CLOSED] delayBeforeSwap implementation

Started by smith, September 05, 2014, 18:35:03

Previous topic - Next topic

smith

It would be relay nice if we could get of glx/wgl delayBeforeSwap function added to the Display class:

see:
https://www.opengl.org/registry/specs/NV/glx_delay_before_swap.txt
https://www.opengl.org/registry/specs/NV/wgl_delay_before_swap.txt

This is important for VR type applications where you only want to start drawing after you have sampled sensor data as close to the vsync swap as draw time allows.

spasi

Support for this extension has been added to LWJGL 3.

LWJGL 2 is not really friendly to platform specific extensions and it'd be quite ugly to support. Since this is a "cutting edge" feature, I don't think it's worth adding to 2.

smith

Wow, that was fast.

How is lwjgl3 coming along? the Roadmap on the wiki says a beta build is expected Q1 2014 so probably needs updating.

spasi

I'll release an official build once GLFW hits 3.1. The LWJGL 3 repo is currently synchronized with the latest GLFW changes and I've been using my free time lately to add more extensions.

Extension support is the "bottleneck" atm. I plan to add all ARB extensions with full documentation, but it's really taking a lot of time, so I'll add the rest initially without docs. Hopefully the community will help fill it in later.

GLFW is in a pretty good state. Support for custom cursors and file drag'n'drop has been added recently and I think the only feature we currently miss from LWJGL 2 is setting window icons. There's a GLFW branch for that, but if it's delayed, it can added externally. GLFW exposes the native window handles which can be used by LWJGL (e.g. that's how you'd use NV_delay_before_swap).

smith