{"action":"created","issue":{"url":"https://api.github.com/repos/AndersMalmgren/FreePIE/issues/69","labels_url":"https://api.github.com/repos/AndersMalmgren/FreePIE/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/AndersMalmgren/FreePIE/issues/69/comments","events_url":"https://api.github.com/repos/AndersMalmgren/FreePIE/issues/69/events","html_url":"https://github.com/AndersMalmgren/FreePIE/issues/69","id":107235559,"number":69,"title":"Clock rate changes with speedstep","user":{"login":"SystemParadox","id":1228777,"avatar_url":"https://avatars.githubusercontent.com/u/1228777?v=3","gravatar_id":"","url":"https://api.github.com/users/SystemParadox","html_url":"https://github.com/SystemParadox","followers_url":"https://api.github.com/users/SystemParadox/followers","following_url":"https://api.github.com/users/SystemParadox/following{/other_user}","gists_url":"https://api.github.com/users/SystemParadox/gists{/gist_id}","starred_url":"https://api.github.com/users/SystemParadox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SystemParadox/subscriptions","organizations_url":"https://api.github.com/users/SystemParadox/orgs","repos_url":"https://api.github.com/users/SystemParadox/repos","events_url":"https://api.github.com/users/SystemParadox/events{/privacy}","received_events_url":"https://api.github.com/users/SystemParadox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-18T16:34:08Z","updated_at":"2015-09-21T08:10:20Z","closed_at":null,"body":"I am finding that FreePIE's clock rate changes. I think it may be to do with speedstep (processor throttling).\r\n\r\nWhen I first start FreePIE it's at about 60Hz, but after running it for a while it shifts up to 1000Hz. It appears to coincide with my CPU speed changing from 1000GHz to 3000GHz.\r\n\r\nTest script:\r\n\r\n```\r\nimport time\r\n\r\ndef updateTime():\r\n\tglobal prevTime\r\n\ttry:\r\n\t\tprevTime\r\n\texcept NameError:\r\n\t\tprevTime = 0\r\n\tnow = time.clock()\r\n\tfps = 1 / (now - prevTime)\r\n\tdiagnostics.watch(prevTime)\r\n\tdiagnostics.watch(now)\r\n\tdiagnostics.watch(fps)\r\n\tprevTime = now\r\n\t\r\nupdateTime()\r\n```\r\n\r\nWhat rate is FreePIE supposed to run at?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/AndersMalmgren/FreePIE/issues/comments/141904033","html_url":"https://github.com/AndersMalmgren/FreePIE/issues/69#issuecomment-141904033","issue_url":"https://api.github.com/repos/AndersMalmgren/FreePIE/issues/69","id":141904033,"user":{"login":"SystemParadox","id":1228777,"avatar_url":"https://avatars.githubusercontent.com/u/1228777?v=3","gravatar_id":"","url":"https://api.github.com/users/SystemParadox","html_url":"https://github.com/SystemParadox","followers_url":"https://api.github.com/users/SystemParadox/followers","following_url":"https://api.github.com/users/SystemParadox/following{/other_user}","gists_url":"https://api.github.com/users/SystemParadox/gists{/gist_id}","starred_url":"https://api.github.com/users/SystemParadox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SystemParadox/subscriptions","organizations_url":"https://api.github.com/users/SystemParadox/orgs","repos_url":"https://api.github.com/users/SystemParadox/repos","events_url":"https://api.github.com/users/SystemParadox/events{/privacy}","received_events_url":"https://api.github.com/users/SystemParadox/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T08:10:20Z","updated_at":"2015-09-21T08:10:20Z","body":"Ok. May I suggest that the default `threadExecutionInterval` be set to 16 then? That would avoid the confusing behaviour in the case that the clock rate isn't 64Hz for some reason! :)"}}