{"action":"created","issue":{"url":"https://api.github.com/repos/alexhultman/uWebSockets/issues/137","repository_url":"https://api.github.com/repos/alexhultman/uWebSockets","labels_url":"https://api.github.com/repos/alexhultman/uWebSockets/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/alexhultman/uWebSockets/issues/137/comments","events_url":"https://api.github.com/repos/alexhultman/uWebSockets/issues/137/events","html_url":"https://github.com/alexhultman/uWebSockets/issues/137","id":158197256,"number":137,"title":"Spikes","user":{"login":"rezoner","id":1395544,"avatar_url":"https://avatars.githubusercontent.com/u/1395544?v=3","gravatar_id":"","url":"https://api.github.com/users/rezoner","html_url":"https://github.com/rezoner","followers_url":"https://api.github.com/users/rezoner/followers","following_url":"https://api.github.com/users/rezoner/following{/other_user}","gists_url":"https://api.github.com/users/rezoner/gists{/gist_id}","starred_url":"https://api.github.com/users/rezoner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezoner/subscriptions","organizations_url":"https://api.github.com/users/rezoner/orgs","repos_url":"https://api.github.com/users/rezoner/repos","events_url":"https://api.github.com/users/rezoner/events{/privacy}","received_events_url":"https://api.github.com/users/rezoner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-06-02T17:34:42Z","updated_at":"2016-06-05T23:10:39Z","closed_at":"2016-06-05T15:57:30Z","body":"A lot of messages arrive at the same time despite being send in constant interval (20 per second).\r\n\r\nNumber to the left is a tick number - number to the right is the count of the messages received in this very animation frame.\r\n\r\nThis is not the case when switching back to websocket/ws - the result is that despite huge CPU gain (idle for 70% of time) the game behaves like if it was updated by the number of accumulated frames times slower.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1395544/15754451/7f527d0c-28f8-11e6-811e-1e0650694639.png)\r\n\r\nBelow - same screenshot from websocket/ws\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1395544/15754743/f75083fc-28f9-11e6-988a-5548bf349f84.png)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/alexhultman/uWebSockets/issues/comments/223843673","html_url":"https://github.com/alexhultman/uWebSockets/issues/137#issuecomment-223843673","issue_url":"https://api.github.com/repos/alexhultman/uWebSockets/issues/137","id":223843673,"user":{"login":"alexhultman","id":3397140,"avatar_url":"https://avatars.githubusercontent.com/u/3397140?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhultman","html_url":"https://github.com/alexhultman","followers_url":"https://api.github.com/users/alexhultman/followers","following_url":"https://api.github.com/users/alexhultman/following{/other_user}","gists_url":"https://api.github.com/users/alexhultman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhultman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhultman/subscriptions","organizations_url":"https://api.github.com/users/alexhultman/orgs","repos_url":"https://api.github.com/users/alexhultman/repos","events_url":"https://api.github.com/users/alexhultman/events{/privacy}","received_events_url":"https://api.github.com/users/alexhultman/received_events","type":"User","site_admin":false},"created_at":"2016-06-05T23:10:39Z","updated_at":"2016-06-05T23:10:39Z","body":"@Dillybob92 Okay sorry for me previous post. But really, in all honestly, ws is truly terrible. If you compare ws against WebSocket++ or libwebsockets you will see that ws is in fact really, really, really slow. Most users report about 2x performance increase when switching from ws, but you should theoretically be able to achieve a larger difference if WebSockets is your bottleneck. Most projects have other bottlenecks kicking in though."}}
{"actor":{"display_login":"alexhultman"}}