{"action":"created","issue":{"url":"https://api.github.com/repos/libretro/RetroArch/issues/2454","labels_url":"https://api.github.com/repos/libretro/RetroArch/issues/2454/labels{/name}","comments_url":"https://api.github.com/repos/libretro/RetroArch/issues/2454/comments","events_url":"https://api.github.com/repos/libretro/RetroArch/issues/2454/events","html_url":"https://github.com/libretro/RetroArch/issues/2454","id":118529848,"number":2454,"title":"[Windows / GL] very high CPU usage","user":{"login":"fr500","id":1721040,"avatar_url":"https://avatars.githubusercontent.com/u/1721040?v=3","gravatar_id":"","url":"https://api.github.com/users/fr500","html_url":"https://github.com/fr500","followers_url":"https://api.github.com/users/fr500/followers","following_url":"https://api.github.com/users/fr500/following{/other_user}","gists_url":"https://api.github.com/users/fr500/gists{/gist_id}","starred_url":"https://api.github.com/users/fr500/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fr500/subscriptions","organizations_url":"https://api.github.com/users/fr500/orgs","repos_url":"https://api.github.com/users/fr500/repos","events_url":"https://api.github.com/users/fr500/events{/privacy}","received_events_url":"https://api.github.com/users/fr500/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-24T04:33:59Z","updated_at":"2015-11-24T10:55:13Z","closed_at":null,"body":"This problem has been present for a while, and it seems it only happens on NVIDIA hardware (I think 700 series in particular) although it would be good to get some more tests to confirm.\r\n\r\nIdle CPU usage is... well VERY high with the GL driver, I tested different hW configuations and all of them showed the same patterns, then I tested one pattern in different scenarios and got some stats\r\n\r\nGPU: Nvidia GTX 770\r\nCPU: Intel Core i5 2500k\r\nOS: Windows 8.1 x64\r\n\r\nFor a baseline I decided to run RGUI/D3D in Windowed and Fullscreen mode:\r\n\r\n![rgui_idle_windowed_d3d](https://cloud.githubusercontent.com/assets/1721040/11357868/4cfde3aa-923a-11e5-9487-564aabc3bab7.png)\r\n![rgui_idle_fullscreen_d3d](https://cloud.githubusercontent.com/assets/1721040/11357870/50154cd6-923a-11e5-9566-bbccdd4ea955.png)\r\n\r\nCPU usage is nice and low, then I changed the driver to GL and did the same experiment:\r\n\r\n![rgui_idle_windowed_gl](https://cloud.githubusercontent.com/assets/1721040/11357903/b74dcd88-923a-11e5-8d01-510cc53a1bc8.png)\r\n![rgui_idle_fullscreen_gl](https://cloud.githubusercontent.com/assets/1721040/11357878/73ae6b14-923a-11e5-955e-a7429f6eeca4.png)\r\n\r\nAs you can see, CPU usage is already higher, now I switched to a GL menu driver:\r\n\r\n![xmb_idle_windowed_gl](https://cloud.githubusercontent.com/assets/1721040/11357887/90247716-923a-11e5-985a-797e1603f55e.png)\r\n![xmb_idle_fullscreen_gl](https://cloud.githubusercontent.com/assets/1721040/11357909/c1f5504e-923a-11e5-88a9-26adf18a6de7.png)\r\n\r\n\r\nAnd lastly, I enabled hard gpu sync which weirly enough caused CPU usage to drop!\r\n\r\n![xmb_idle_fullscreen_gl_hardsync_0](https://cloud.githubusercontent.com/assets/1721040/11357899/aa30f6ca-923a-11e5-982d-d5d6429832f9.png)\r\n\r\nSo I decided to profile this last config that seems promising, a weird thing is that even on idle there seems to be 9 threads that belong to retroarch.exe:\r\n\r\n![vsidle_last](https://cloud.githubusercontent.com/assets/1721040/11357919/e2e84fa4-923a-11e5-88de-e085b15e5cb0.png)\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/libretro/RetroArch/issues/comments/159228873","html_url":"https://github.com/libretro/RetroArch/issues/2454#issuecomment-159228873","issue_url":"https://api.github.com/repos/libretro/RetroArch/issues/2454","id":159228873,"user":{"login":"twinaphex","id":1075274,"avatar_url":"https://avatars.githubusercontent.com/u/1075274?v=3","gravatar_id":"","url":"https://api.github.com/users/twinaphex","html_url":"https://github.com/twinaphex","followers_url":"https://api.github.com/users/twinaphex/followers","following_url":"https://api.github.com/users/twinaphex/following{/other_user}","gists_url":"https://api.github.com/users/twinaphex/gists{/gist_id}","starred_url":"https://api.github.com/users/twinaphex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twinaphex/subscriptions","organizations_url":"https://api.github.com/users/twinaphex/orgs","repos_url":"https://api.github.com/users/twinaphex/repos","events_url":"https://api.github.com/users/twinaphex/events{/privacy}","received_events_url":"https://api.github.com/users/twinaphex/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T10:55:13Z","updated_at":"2015-11-24T10:55:13Z","body":"Use the latest version on Cydia or compile the latest sources, these issues happened only for a brief few hours yesterday and they should not happen anymore."}}