{"action":"created","issue":{"url":"https://api.github.com/repos/psychopy/psychopy/issues/896","labels_url":"https://api.github.com/repos/psychopy/psychopy/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/psychopy/psychopy/issues/896/comments","events_url":"https://api.github.com/repos/psychopy/psychopy/issues/896/events","html_url":"https://github.com/psychopy/psychopy/issues/896","id":73247886,"number":896,"title":"Refresh-rate is not in line with system refresh rate","user":{"login":"Sjocolaatje","id":10087584,"avatar_url":"https://avatars.githubusercontent.com/u/10087584?v=3","gravatar_id":"","url":"https://api.github.com/users/Sjocolaatje","html_url":"https://github.com/Sjocolaatje","followers_url":"https://api.github.com/users/Sjocolaatje/followers","following_url":"https://api.github.com/users/Sjocolaatje/following{/other_user}","gists_url":"https://api.github.com/users/Sjocolaatje/gists{/gist_id}","starred_url":"https://api.github.com/users/Sjocolaatje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sjocolaatje/subscriptions","organizations_url":"https://api.github.com/users/Sjocolaatje/orgs","repos_url":"https://api.github.com/users/Sjocolaatje/repos","events_url":"https://api.github.com/users/Sjocolaatje/events{/privacy}","received_events_url":"https://api.github.com/users/Sjocolaatje/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-05T08:33:20Z","updated_at":"2015-05-11T15:51:33Z","closed_at":null,"body":"Psychopy seems to be doing something odd to the refresh-rate of our 120 Hz systems. When I run the benchmarking tool, everything is running nice and dandy at 120 Hz (flip time 8.33 ms). However, when I run my experiment, Psychopy reports that it is running at 60 fps in the log file, even though the resolution of the monitor is set to 120 Hz, as is confirmed by the benchmarking tool. More strangely even, the *actual* resolution (flip-time) seems to be running either at 40 hz (flip time 25 ms) or 60 Hz (flip time 16.66 ms), depending on the system on which I'm testing, but 60 fps is reported in the log file regardless. I cannot find the source of the problem. It is definitely something related to the graphics cards we are using (an Nvidia GeForce 210, but I've also seen it on GeForce GT 720). A similar issue was reported by somebody else in Google groups:\r\nhttps://groups.google.com/forum/#!topic/psychopy-users/HzxSKvupX-U\r\nwhere somebody mentioned that they solved it by setting useFBO=false. If I try this (which unfortunately I do not seem to be able to do in the builder view), the situation changes, such that the system that was previously running at 40Hz now runs at 60Hz when running an experiment, and that the system that was using 60 Hz now runs at 120 Hz. In both cases, the system refresh rate is set to 120 Hz though as confirmed by PsychoPy's benchmarking tool. Is there any way I can force PsychoPy to adopt a certain refresh rate? Could there be a bug somewhere that impacts the refresh rate on some systems, possibly related to FBO? Or some other buffer-related influence on the refresh rate?"},"comment":{"url":"https://api.github.com/repos/psychopy/psychopy/issues/comments/100954646","html_url":"https://github.com/psychopy/psychopy/issues/896#issuecomment-100954646","issue_url":"https://api.github.com/repos/psychopy/psychopy/issues/896","id":100954646,"user":{"login":"peircej","id":380582,"avatar_url":"https://avatars.githubusercontent.com/u/380582?v=3","gravatar_id":"","url":"https://api.github.com/users/peircej","html_url":"https://github.com/peircej","followers_url":"https://api.github.com/users/peircej/followers","following_url":"https://api.github.com/users/peircej/following{/other_user}","gists_url":"https://api.github.com/users/peircej/gists{/gist_id}","starred_url":"https://api.github.com/users/peircej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peircej/subscriptions","organizations_url":"https://api.github.com/users/peircej/orgs","repos_url":"https://api.github.com/users/peircej/repos","events_url":"https://api.github.com/users/peircej/events{/privacy}","received_events_url":"https://api.github.com/users/peircej/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T15:51:33Z","updated_at":"2015-05-11T15:51:33Z","body":"Yes, it is calculated at the beginning of the script by flipping the \nwindow and seeing how long it takes for the the screen refresh to occur.\n\nI've said to several of these emails before that PsychoPy doesn't do \nanything itself to control refresh rates; it merely flips and waits for \nthe flip to occur.\n\nJon\n\nOn 11/05/15 13:59, Jonas Lindeløv wrote:\n> I haven't checked yet where it grabs the fps information, but\n> > unless the fps are computed dynamically during the script useFBO \n> actually\n> > impacts the monitor refresh rate directly.\n\n-- \nJonathan Peirce\nUniversity of Nottingham\n\nhttp://www.peirce.org.uk\n\n\n\n\n\nThis message and any attachment are intended solely for the addressee\nand may contain confidential information. If you have received this\nmessage in error, please send it back to me, and immediately delete it. \n\nPlease do not use, copy or disclose the information contained in this\nmessage or in any attachment.  Any views or opinions expressed by the\nauthor of this email do not necessarily reflect the views of the\nUniversity of Nottingham.\n\nThis message has been checked for viruses but the contents of an\nattachment may still contain software viruses which could damage your\ncomputer system, you are advised to perform your own checks. Email\ncommunications with the University of Nottingham may be monitored as\npermitted by UK legislation.\n\n"}}