{"action":"created","issue":{"url":"https://api.github.com/repos/thegrb93/StarfallEx/issues/38","repository_url":"https://api.github.com/repos/thegrb93/StarfallEx","labels_url":"https://api.github.com/repos/thegrb93/StarfallEx/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/thegrb93/StarfallEx/issues/38/comments","events_url":"https://api.github.com/repos/thegrb93/StarfallEx/issues/38/events","html_url":"https://github.com/thegrb93/StarfallEx/issues/38","id":151038269,"number":38,"title":"Add Tick hook","user":{"login":"edgarasf123","id":2304691,"avatar_url":"https://avatars.githubusercontent.com/u/2304691?v=3","gravatar_id":"","url":"https://api.github.com/users/edgarasf123","html_url":"https://github.com/edgarasf123","followers_url":"https://api.github.com/users/edgarasf123/followers","following_url":"https://api.github.com/users/edgarasf123/following{/other_user}","gists_url":"https://api.github.com/users/edgarasf123/gists{/gist_id}","starred_url":"https://api.github.com/users/edgarasf123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgarasf123/subscriptions","organizations_url":"https://api.github.com/users/edgarasf123/orgs","repos_url":"https://api.github.com/users/edgarasf123/repos","events_url":"https://api.github.com/users/edgarasf123/events{/privacy}","received_events_url":"https://api.github.com/users/edgarasf123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-26T04:27:29Z","updated_at":"2016-05-04T15:44:08Z","closed_at":null,"body":"Tick is called every FPS instead of each game frame as Think hook does."},"comment":{"url":"https://api.github.com/repos/thegrb93/StarfallEx/issues/comments/216907107","html_url":"https://github.com/thegrb93/StarfallEx/issues/38#issuecomment-216907107","issue_url":"https://api.github.com/repos/thegrb93/StarfallEx/issues/38","id":216907107,"user":{"login":"ThatOneCheetah","id":9394711,"avatar_url":"https://avatars.githubusercontent.com/u/9394711?v=3","gravatar_id":"","url":"https://api.github.com/users/ThatOneCheetah","html_url":"https://github.com/ThatOneCheetah","followers_url":"https://api.github.com/users/ThatOneCheetah/followers","following_url":"https://api.github.com/users/ThatOneCheetah/following{/other_user}","gists_url":"https://api.github.com/users/ThatOneCheetah/gists{/gist_id}","starred_url":"https://api.github.com/users/ThatOneCheetah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThatOneCheetah/subscriptions","organizations_url":"https://api.github.com/users/ThatOneCheetah/orgs","repos_url":"https://api.github.com/users/ThatOneCheetah/repos","events_url":"https://api.github.com/users/ThatOneCheetah/events{/privacy}","received_events_url":"https://api.github.com/users/ThatOneCheetah/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T15:44:08Z","updated_at":"2016-05-04T15:44:08Z","body":"It seems from this code:\r\n\r\n```\r\n`if SERVER then return end\r\n\r\nlocal curtime   = timer.curtime\r\n\r\nlocal last_tick = curtime()\r\nhook.add( \"think\", \"test\", function()\r\n    print( 1/(curtime()-last_tick) .. \"tps\" )\r\n    last_tick = curtime()\r\nend )\r\n```\r\nThat the `think` hook is actually called every FPS instead of every game-tick, as described [here](http://wiki.garrysmod.com/page/GM/Think); Which means the Starfall documentation is slightly off.\r\n\r\nI've added a `tick` hook which is *actually* called every game tick [here](https://github.com/ThatOneCheetah/StarfallEx/commit/e2a7dff17099adb64a5f7843857492acc96006b9).\r\nI'll make a pull request as soon as the net bursting fix has been merged."}}