Hello Guest

[CLOSED] delayBeforeSwap implementation

  • 4 Replies
  • 2875 Views
*

Offline smith

  • *
  • 45
[CLOSED] delayBeforeSwap implementation
« on: September 05, 2014, 18:35:03 »
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.

*

Offline spasi

  • *****
  • 2140
    • WebHotelier
Re: [RFE] delayBeforeSwap implementation
« Reply #1 on: September 06, 2014, 11:10:19 »
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.

*

Offline smith

  • *
  • 45
Re: [RFE] delayBeforeSwap implementation
« Reply #2 on: September 06, 2014, 12:07:15 »
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.

*

Offline spasi

  • *****
  • 2140
    • WebHotelier
Re: [RFE] delayBeforeSwap implementation
« Reply #3 on: September 06, 2014, 12:36:12 »
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).

*

Offline smith

  • *
  • 45
Re: [RFE] delayBeforeSwap implementation
« Reply #4 on: September 06, 2014, 12:41:18 »
Excellent work, I look forward to it!