{"action":"created","issue":{"url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/535","labels_url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/535/comments","events_url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/535/events","html_url":"https://github.com/Unvanquished/Unvanquished/issues/535","id":55398966,"number":535,"title":"Performance issue occurring in some Perseus parts (and some other maps)","user":{"login":"illwieckz","id":2311649,"avatar_url":"https://avatars.githubusercontent.com/u/2311649?v=3","gravatar_id":"","url":"https://api.github.com/users/illwieckz","html_url":"https://github.com/illwieckz","followers_url":"https://api.github.com/users/illwieckz/followers","following_url":"https://api.github.com/users/illwieckz/following{/other_user}","gists_url":"https://api.github.com/users/illwieckz/gists{/gist_id}","starred_url":"https://api.github.com/users/illwieckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illwieckz/subscriptions","organizations_url":"https://api.github.com/users/illwieckz/orgs","repos_url":"https://api.github.com/users/illwieckz/repos","events_url":"https://api.github.com/users/illwieckz/events{/privacy}","received_events_url":"https://api.github.com/users/illwieckz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-25T05:34:10Z","updated_at":"2015-01-26T05:19:06Z","closed_at":null,"body":"Hi, as said on #526, I experience some performance issue on my server since rocket pod release.\r\n\r\nAfter some tests I can say the performance issue seems to be map-related, since in the same map I can spawn 40 rocket pod in one place and run as dretch under fire in front of them without lag, and in another place of the same map during the same game on the same server, I experience lag with only 6 rocket pods (and some people have noticed lag on the same place of the same map on the same server with only 2 rocket pods before the rocket pod update and gamelogic optimization).\r\n\r\nNo server-side lag in this place:\r\n![no lag](http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/shots/unvanquished_2015-01-25_072228_000.jpg)\r\n\r\nRunning as dretch under fire in front of 40 rocket pods on my dedicated server and staying alive (demo):\r\n[unv035git.perseus-rocket-dodge-in-hell.1-dretch-versus-40-rocket-pods.dm_86](http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/demos/unv035git.perseus-rocket-dodge-in-hell.1-dretch-versus-40-rocket-pods.dm_86)\r\n\r\nServer-side lag in this place:\r\n![lag](http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/shots/unvanquished_2015-01-25_035209_000.jpg)\r\n\r\nAlso, I can put on knees a powerful 4GHz 8 core CPU putting rocket pods in this place of this map (and still not lag on the other place), so if my server is not powerful like this one, I know it's not my server fault : I experience the same problem with an high end computer which is high above the hardware requirements.\r\n\r\nThis performance issue is not related to player or bot too, only one bot or only one player in front of some rocket pod in the bad place is sufficient to lag the server. Having multiple bots and players on server just increase normally the average usage, so problems come faster. Having multiple bots and player on server also increases the risk for someone to go in the wrong place at the wrong time, so problems come faster.\r\n\r\nEdit: Perseus is not the only map where this problem happens, but it seems to be the most affected one.\r\n\r\nEdit: If this kind of server-side lag is map-specific, it seems triggered by the rocket launch. It's perhaps not a mapping problem, but perhaps related to how this kind of map is handled by the engine… I don't know."},"comment":{"url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/comments/71415790","html_url":"https://github.com/Unvanquished/Unvanquished/issues/535#issuecomment-71415790","issue_url":"https://api.github.com/repos/Unvanquished/Unvanquished/issues/535","id":71415790,"user":{"login":"illwieckz","id":2311649,"avatar_url":"https://avatars.githubusercontent.com/u/2311649?v=3","gravatar_id":"","url":"https://api.github.com/users/illwieckz","html_url":"https://github.com/illwieckz","followers_url":"https://api.github.com/users/illwieckz/followers","following_url":"https://api.github.com/users/illwieckz/following{/other_user}","gists_url":"https://api.github.com/users/illwieckz/gists{/gist_id}","starred_url":"https://api.github.com/users/illwieckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illwieckz/subscriptions","organizations_url":"https://api.github.com/users/illwieckz/orgs","repos_url":"https://api.github.com/users/illwieckz/repos","events_url":"https://api.github.com/users/illwieckz/events{/privacy}","received_events_url":"https://api.github.com/users/illwieckz/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T05:19:06Z","updated_at":"2015-01-26T05:19:06Z","body":"Some history for Viech:\r\n\r\n> `<illwieckz>`   Viech: the performance issue seems to be a map issue. for example, try this perseus layout http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/game/layouts/perseus/rocketspam.dat with a recent setup (I'm was running nerfed rocketpod + spike + devserver/3ed9036 when I saved this layout), go to the \"Cell Block Bottom\" room (which is a big room) to try to dodge rockets: you will not lag, now go to the \"Cooling\" room which is another big room, and try to run under rockets, your computer will lag seriously, even if you are the only one on the server, even if you have a 8core@4GHz cpu like my desktop computer.\r\n> `<illwieckz>`   lag: http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/bugs/unvanquished_2015-01-25_030036_000.jpg / not lag: http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/bugs/unvanquished_2015-01-25_020332_000.jpg (same game, only one player, the one on the screen, server running on a big desktop computer)\r\n> `<illwieckz>`   1 dretch running in front of 40 rocket pods in \"Cell Block\" room on \"Perseus\" map on my dedicated server, no lag, the dretch is alive: http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/demos/unv035git.perseus-rocket-dodge-in-hell.1-dretch-versus-40-rocket-pods.dm_86\r\n> `<illwieckz>`   6 rocket pods in \"Cooling\" room, same map, same server → server-side lag\r\n> `<illwieckz>`   the hell (and no lag): http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/shots/unvanquished_2015-01-25_044410_000.jpg :)\r\n> `<illwieckz>`   Pevel: do you have an idea why I can build 40 rocket pods in \"Cell Block\" room without experiencing lag when they launch rockets, but I can't build 10 rocket pods in \"Cooling\" room without experiencing lag when rockets are fired?\r\n> `<illwieckz>`   This lag is related to some map places, but I can't say if it comes from the map or from the engine… It seems that your map is the best one to reveal the problem.\r\n> `<Pevel>`       illwieckz: I don't know if there's a way to check tris count in the current sight but my bet is that there are way more tris in \"Cooling\" making it more laggy\r\n> `<Pevel>`       there is a lot of boxes in there\r\n> `<Pevel>`       PVS seems to be optimized but it's the level of detail that may cause lags\r\n> `<Pevel>`       illwieckz: http://i.imgur.com/LWxnlPZ.jpg vs http://i.imgur.com/q0pyOAh.jpg\r\n> `<illwieckz>`   I see also that rocket launched from \"block cell\" room can reach \"cooling\" room.\r\n> `<illwieckz>`   As seen in this demo: http://dl.illwieckz.net/u/thomas-debesse/bazar/unvanquished/demos/unv035git.perseus-rocket-dodge-in-hell.1-dretch-versus-48-rocket-pods-from-cell-block-to-cooling.dm_86\r\n> `<illwieckz>`   this demo show also lag in cooling room, the \"smooth\" part of the demo at the end is the part when unvanquished knows nothing where am I and interpolate.\r\n> `<illwieckz>`   I run in front of 40 rocket pod on cell block room then run to cooling room with rockets on my ass without problem, then I say hello to 8 rocket pods in cooling room and… lag happens :-)\r\n> `<illwieckz>`   If you get some model rendered with form of others, just connect to my server before \"/connect gg.illwieckz.net:27960\", and when the map is loaded, run the demo \"/demo ...\" (don't know if it's a bug too :p)\r\n> `<gimhael>`     if there's a way to check tris count in the current sight => /r_speeds 1\r\n> `<Pevel>`       thanks gimhael \r\n> `<Pevel>`       so I think we've got the answer\r\n> `<Pevel>`       there are about 4 times more tris in Cooling than in Cell Block\r\n> `<gimhael>`     what's the number of batches/draw calls\r\n> `<Pevel>`       well, batches/draw calls numbers seem to be more or less equal in both rooms\r\n> `<Viech>`       <Pevel> there are about 4 times more tris in Cooling than in Cell Block ← maybe trace-related. rocket pods and rockets do quite a few of them."}}