{"action":"created","issue":{"url":"https://api.github.com/repos/phetsims/joist/issues/204","labels_url":"https://api.github.com/repos/phetsims/joist/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/joist/issues/204/comments","events_url":"https://api.github.com/repos/phetsims/joist/issues/204/events","html_url":"https://github.com/phetsims/joist/issues/204","id":56105938,"number":204,"title":"document makeEverythingSlow and makeRandomSlowness","user":{"login":"pixelzoom","id":3046552,"avatar_url":"https://avatars.githubusercontent.com/u/3046552?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelzoom","html_url":"https://github.com/pixelzoom","followers_url":"https://api.github.com/users/pixelzoom/followers","following_url":"https://api.github.com/users/pixelzoom/following{/other_user}","gists_url":"https://api.github.com/users/pixelzoom/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelzoom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelzoom/subscriptions","organizations_url":"https://api.github.com/users/pixelzoom/orgs","repos_url":"https://api.github.com/users/pixelzoom/repos","events_url":"https://api.github.com/users/pixelzoom/events{/privacy}","received_events_url":"https://api.github.com/users/pixelzoom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-31T01:18:47Z","updated_at":"2015-01-31T01:34:35Z","closed_at":null,"body":"Globals window.phet.joist.makeEverythingSlow and window.phet.joist.makeRandomSlowness are defined in Sim.js. They have no documentation and don't appear in any other .js or .html files. Please document what they are used for.  And do they below in Sim.js?"},"comment":{"url":"https://api.github.com/repos/phetsims/joist/issues/comments/72298169","html_url":"https://github.com/phetsims/joist/issues/204#issuecomment-72298169","issue_url":"https://api.github.com/repos/phetsims/joist/issues/204","id":72298169,"user":{"login":"jonathanolson","id":480878,"avatar_url":"https://avatars.githubusercontent.com/u/480878?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanolson","html_url":"https://github.com/jonathanolson","followers_url":"https://api.github.com/users/jonathanolson/followers","following_url":"https://api.github.com/users/jonathanolson/following{/other_user}","gists_url":"https://api.github.com/users/jonathanolson/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanolson/subscriptions","organizations_url":"https://api.github.com/users/jonathanolson/orgs","repos_url":"https://api.github.com/users/jonathanolson/repos","events_url":"https://api.github.com/users/jonathanolson/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanolson/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T01:34:35Z","updated_at":"2015-01-31T01:34:35Z","body":"First of all, they are used to make sure our sims still behave properly with an artificially higher load (so I can test what happens on desktop at 30fps, 5fps, etc). There tend to be bugs that only happen on less powerful devices, and I added that to both test a sim for robustness, and to allow others (MLL notably has needed to use it for WOAS and another sim) to reproduce the slow behavior bugs.\r\n\r\nI don't have any major preferences on where they live. Let me know if Sim.js is best or if they should live somewhere else, and I can document them. Even better, should we replace it with query parameters in a tunable way?"}}