{"action":"created","issue":{"url":"https://api.github.com/repos/ccMSC/ckb/issues/67","labels_url":"https://api.github.com/repos/ccMSC/ckb/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/ccMSC/ckb/issues/67/comments","events_url":"https://api.github.com/repos/ccMSC/ckb/issues/67/events","html_url":"https://github.com/ccMSC/ckb/issues/67","id":78246771,"number":67,"title":"Periodic high latency while CKB is open","user":{"login":"zchristopoulos","id":6269810,"avatar_url":"https://avatars.githubusercontent.com/u/6269810?v=3","gravatar_id":"","url":"https://api.github.com/users/zchristopoulos","html_url":"https://github.com/zchristopoulos","followers_url":"https://api.github.com/users/zchristopoulos/followers","following_url":"https://api.github.com/users/zchristopoulos/following{/other_user}","gists_url":"https://api.github.com/users/zchristopoulos/gists{/gist_id}","starred_url":"https://api.github.com/users/zchristopoulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zchristopoulos/subscriptions","organizations_url":"https://api.github.com/users/zchristopoulos/orgs","repos_url":"https://api.github.com/users/zchristopoulos/repos","events_url":"https://api.github.com/users/zchristopoulos/events{/privacy}","received_events_url":"https://api.github.com/users/zchristopoulos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-05-19T20:52:02Z","updated_at":"2015-08-07T08:35:44Z","closed_at":null,"body":"This has been bugging me the past week or so, but I'm glad I finally found the culprit.\r\n\r\nWhenever I have CKB open and running, I have periodic (every 5-10 seconds) latency spikes that take my ping to google.com from ~25 ms to ~150-175 ms for about 1 second.\r\n\r\nMoment I close ckb, the latency stays at a fairly steady ~25ms. Any ideas what may be causing this?"},"comment":{"url":"https://api.github.com/repos/ccMSC/ckb/issues/comments/128641660","html_url":"https://github.com/ccMSC/ckb/issues/67#issuecomment-128641660","issue_url":"https://api.github.com/repos/ccMSC/ckb/issues/67","id":128641660,"user":{"login":"ccMSC","id":9427540,"avatar_url":"https://avatars.githubusercontent.com/u/9427540?v=3","gravatar_id":"","url":"https://api.github.com/users/ccMSC","html_url":"https://github.com/ccMSC","followers_url":"https://api.github.com/users/ccMSC/followers","following_url":"https://api.github.com/users/ccMSC/following{/other_user}","gists_url":"https://api.github.com/users/ccMSC/gists{/gist_id}","starred_url":"https://api.github.com/users/ccMSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccMSC/subscriptions","organizations_url":"https://api.github.com/users/ccMSC/orgs","repos_url":"https://api.github.com/users/ccMSC/repos","events_url":"https://api.github.com/users/ccMSC/events{/privacy}","received_events_url":"https://api.github.com/users/ccMSC/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T08:35:44Z","updated_at":"2015-08-07T08:35:44Z","body":"Offhand, I'd guess it's either:\r\n\r\n1. Constant polling of /dev nodes to check whether a new device has connected. This currently runs on the same timer as the animations, i.e. 30FPS. It could be polled much less frequently, maybe 5-10 times a second.\r\n2. Always sending updated lighting to the daemon even when there are no animations active. The binding and performance setups are already optimized so that they don't send data unless they actually need to, but lighting hasn't received this optimization.\r\n3. It's possible that the GUI is being updated unnecessarily, even when you're not doing anything. As far as I know the GUI is completely passive as long as the app is in the background, so this would require some digging to find out what (if anything) is being called.\r\n\r\n1 and 2 are relatively simple to fix. I haven't looked into it to see if those are the actual causes, but they need to be done at some point anyway so that would be a good place to start."}}