{"action":"created","issue":{"url":"https://api.github.com/repos/melonjs/melonJS/issues/718","labels_url":"https://api.github.com/repos/melonjs/melonJS/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/melonjs/melonJS/issues/718/comments","events_url":"https://api.github.com/repos/melonjs/melonJS/issues/718/events","html_url":"https://github.com/melonjs/melonJS/pull/718","id":98565157,"number":718,"title":"Suggested solution for Issue #99","user":{"login":"Giwayume","id":4075314,"avatar_url":"https://avatars.githubusercontent.com/u/4075314?v=3","gravatar_id":"","url":"https://api.github.com/users/Giwayume","html_url":"https://github.com/Giwayume","followers_url":"https://api.github.com/users/Giwayume/followers","following_url":"https://api.github.com/users/Giwayume/following{/other_user}","gists_url":"https://api.github.com/users/Giwayume/gists{/gist_id}","starred_url":"https://api.github.com/users/Giwayume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giwayume/subscriptions","organizations_url":"https://api.github.com/users/Giwayume/orgs","repos_url":"https://api.github.com/users/Giwayume/repos","events_url":"https://api.github.com/users/Giwayume/events{/privacy}","received_events_url":"https://api.github.com/users/Giwayume/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-01T22:23:30Z","updated_at":"2015-08-03T20:32:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/melonjs/melonJS/pulls/718","html_url":"https://github.com/melonjs/melonJS/pull/718","diff_url":"https://github.com/melonjs/melonJS/pull/718.diff","patch_url":"https://github.com/melonjs/melonJS/pull/718.patch"},"body":"Here's how it works:\r\n\r\nGame loop automatically calls the update function once or multiple times based on `me.sys.updatesPerSecond` as the update rate.\r\n\r\nFor the user to implement frame prediction in their game, `me.sys.updatesPerSecond` must be lower than `me.sys.fps`. When this happens, draw events will be called as often as `me.sys.fps` and update events will be called at `me.sys.updatesPerSecond`.\r\n\r\nFrame prediction demo added. From what I can tell, having a high `me.sys.updatesPerSecond` works a little smoother than implementing frame prediction.\r\n\r\nSetting `me.sys.interpolation` to true disables all of the above, and works how it does today."},"comment":{"url":"https://api.github.com/repos/melonjs/melonJS/issues/comments/127399107","html_url":"https://github.com/melonjs/melonJS/pull/718#issuecomment-127399107","issue_url":"https://api.github.com/repos/melonjs/melonJS/issues/718","id":127399107,"user":{"login":"Giwayume","id":4075314,"avatar_url":"https://avatars.githubusercontent.com/u/4075314?v=3","gravatar_id":"","url":"https://api.github.com/users/Giwayume","html_url":"https://github.com/Giwayume","followers_url":"https://api.github.com/users/Giwayume/followers","following_url":"https://api.github.com/users/Giwayume/following{/other_user}","gists_url":"https://api.github.com/users/Giwayume/gists{/gist_id}","starred_url":"https://api.github.com/users/Giwayume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giwayume/subscriptions","organizations_url":"https://api.github.com/users/Giwayume/orgs","repos_url":"https://api.github.com/users/Giwayume/repos","events_url":"https://api.github.com/users/Giwayume/events{/privacy}","received_events_url":"https://api.github.com/users/Giwayume/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T20:32:03Z","updated_at":"2015-08-03T20:32:03Z","body":"I think technically #99 is solved with this code, a different issue should be opened for in-engine predictive positioning. There's a lot to talk about there.\r\n\r\nAre there any issues with this implementation of multiple update calls?"}}