haskell - GPipe VSync & FPS -


i'm starting learn gpipe library, , wondering how accomplish vsync , fps control it. initially, thinking separate thread block every 1 * 1000000 / fps microseconds , run swapcontextbuffers, mean separate thread need build own contextt, , it's own window.

the docs on function itself mentions briefly block if vsync enabled in system - mean? how enable it?

setting swap interval specific window manager in opengl. in case of glfw, need call glfwswapinterval. unfortunately, cannot in gpipe since thread contextt running on doesn't have gl context current. should implemented in gpipe-glfw's context creation instead, i.e. inside newcontext'.

and no, cannot asynchronously swap buffers in gpipe (but wouldn't want if possible).


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -