Shared context in linux

Using GLFW
2013-09-03
2013-09-04
  • Miroslav Andel
    Miroslav Andel
    2013-09-03

    Hi, with enabled v-sync and a shared context across several windows in linux I'm getting a framerate = screen_refresh_rate / number_of_windows. Using a 60Hz monitor and running three windows results in 20Hz rendering which is not really what I want. The same code in Windows7 renders my application at 60Hz when using three windows. I'm running Nvidia hardware and using GLFW 3.0.2. Anyone got the same problem? Any solutions? I think it might be a problem with glfwSwapBuffers in linux.

     
  • Camilla Löwy
    Camilla Löwy
    2013-09-03

    Since you have nVidia hardware you can use GLX_NV_swap_group.

     
  • Miroslav Andel
    Miroslav Andel
    2013-09-04

    Swap groups are only supported on nvidia's professional hardware (quadro series). Currently I'm testing my code on a laptop equipped with nvidia geforce running linux. By adding a simple timer to the sharing test application in the glfw source I get the same results. Using two windows results in a 30 fps frame-rate on a 60Hz monitor.