On 20/06/14 13:50, Ryan Mailey wrote: > Hi. > > I'm trying to write a small game in cocos2d, but I can't get vsync to > actually work. This is not a problem with cocos itself, but rather a > problem I've had with Pyglet. The problem persists on multiple machines > with different hardware, and was the original reason for me > discontinuing my Python game development. > > Basically, setting vsync to 'True' is completely ignored. I still render > the scene at 1000+ fps. >
I did a quick check of cocos and it's creating the window straight away passing though the parameters to pyglet, so vsync should be True (on). Can you check what's the vsync property value in cocos window? Printing director.window.vsync should do it (I may be wrong). I wonder if there's any problem with the vsync code in Windows 8, I didn't have problems in my tests in Windows and it definitely works as expected in Linux. vsync on win32 depends on WGL_EXT_swap_control extension. See: https://code.google.com/p/pyglet/source/browse/pyglet/gl/win32.py#230 It would be great if you could verify that your opengl implementation provides it! Regards, Juan PS: sorry, this was quick check... I may be wrong all together! -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
