{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/1674","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/1674/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/1674/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/1674/events","html_url":"https://github.com/mpv-player/mpv/pull/1674","id":60558583,"number":1674,"title":"win32: support get display fps","user":{"login":"avih","id":2164962,"avatar_url":"https://avatars.githubusercontent.com/u/2164962?v=3","gravatar_id":"","url":"https://api.github.com/users/avih","html_url":"https://github.com/avih","followers_url":"https://api.github.com/users/avih/followers","following_url":"https://api.github.com/users/avih/following{/other_user}","gists_url":"https://api.github.com/users/avih/gists{/gist_id}","starred_url":"https://api.github.com/users/avih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avih/subscriptions","organizations_url":"https://api.github.com/users/avih/orgs","repos_url":"https://api.github.com/users/avih/repos","events_url":"https://api.github.com/users/avih/events{/privacy}","received_events_url":"https://api.github.com/users/avih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-10T19:52:03Z","updated_at":"2015-03-10T20:00:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mpv-player/mpv/pulls/1674","html_url":"https://github.com/mpv-player/mpv/pull/1674","diff_url":"https://github.com/mpv-player/mpv/pull/1674.diff","patch_url":"https://github.com/mpv-player/mpv/pull/1674.patch"},"body":"A bit ugly, but apparently I'm not the first to use this exact trick."},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/78135368","html_url":"https://github.com/mpv-player/mpv/pull/1674#issuecomment-78135368","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/1674","id":78135368,"user":{"login":"wm4","id":1387750,"avatar_url":"https://avatars.githubusercontent.com/u/1387750?v=3","gravatar_id":"","url":"https://api.github.com/users/wm4","html_url":"https://github.com/wm4","followers_url":"https://api.github.com/users/wm4/followers","following_url":"https://api.github.com/users/wm4/following{/other_user}","gists_url":"https://api.github.com/users/wm4/gists{/gist_id}","starred_url":"https://api.github.com/users/wm4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wm4/subscriptions","organizations_url":"https://api.github.com/users/wm4/orgs","repos_url":"https://api.github.com/users/wm4/repos","events_url":"https://api.github.com/users/wm4/events{/privacy}","received_events_url":"https://api.github.com/users/wm4/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T20:00:10Z","updated_at":"2015-03-10T20:00:10Z","body":"Well, this looks certainly weird... and is probably completely wrong. Where did you get this trick and why do you think it works?\r\n\r\nAFAIK the only way to get the actual display FPS on windows is to measure it, or in some cases using certain other APIs. See #1543.\r\n\r\nI'd rather want to be careful with this, because the display FPS is used for framedropping. So if a display FPS lower than real is reported, the player will drop frames that it shouldn't.\r\n\r\nAlso, this value should probably be cached, because this function will be called on every frame."}}