Results 1 to 5 of 5

Thread: Initial swap interval in CL_DisplayWindowDescription

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Initial swap interval in CL_DisplayWindowDescription

    Hi,

    Currently ClanLib doesn't allow to specify a swap interval during the render window creation, only later in flip() function. The initial swap interval should be useful for:

    • Direct3D display targets, which require swap interval in the device presentation parameters;
    • ClanGUI applications, because there is no easy way to setup vsync before CL_GUIManager::exec() call, e.g. in GUIBasic example.

    The attached patch adds two public functions get_swap_interval()/set_swap_interval() to CL_DisplayWindowDescription class and perform necessary changes in the display targets. So, any chances to see this in the next ClanLib releases?
    Attached Files Attached Files

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •