开发者

How to get the point in time of (last) vertical retrace under Python?

开发者 https://www.devze.com 2023-01-06 20:51 出处:网络
I am using Pyga开发者_StackOverflow社区me to pageflip different stimuli on the screen. The problem is that pygame\'s flip function, although syncing the flip to the vertical retrace, does not tell me

I am using Pyga开发者_StackOverflow社区me to pageflip different stimuli on the screen. The problem is that pygame's flip function, although syncing the flip to the vertical retrace, does not tell me when the retrace was. Does anyone know of a way to get this information (preferably platform independent) in Python?

Regards, fladd


Just poll for the time immediately after the flip call, if that one syncs to the vertical retrace.

0

精彩评论

暂无评论...
验证码 换一张
取 消