{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9841","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9841/labels{/name}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9841/comments","events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9841/events","html_url":"https://github.com/OpenRA/OpenRA/issues/9841","id":114449749,"number":9841,"title":"TerrainSpriteLayer memory sink","user":{"login":"huwpascoe","id":1812087,"avatar_url":"https://avatars.githubusercontent.com/u/1812087?v=3","gravatar_id":"","url":"https://api.github.com/users/huwpascoe","html_url":"https://github.com/huwpascoe","followers_url":"https://api.github.com/users/huwpascoe/followers","following_url":"https://api.github.com/users/huwpascoe/following{/other_user}","gists_url":"https://api.github.com/users/huwpascoe/gists{/gist_id}","starred_url":"https://api.github.com/users/huwpascoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huwpascoe/subscriptions","organizations_url":"https://api.github.com/users/huwpascoe/orgs","repos_url":"https://api.github.com/users/huwpascoe/repos","events_url":"https://api.github.com/users/huwpascoe/events{/privacy}","received_events_url":"https://api.github.com/users/huwpascoe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenRA/OpenRA/labels/Performance","name":"Performance","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OpenRA/OpenRA/milestones/16","html_url":"https://github.com/OpenRA/OpenRA/milestones/Next%20release","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/milestones/16/labels","id":1214438,"number":16,"title":"Next release","description":"","creator":{"login":"reaperrr","id":2857877,"avatar_url":"https://avatars.githubusercontent.com/u/2857877?v=3","gravatar_id":"","url":"https://api.github.com/users/reaperrr","html_url":"https://github.com/reaperrr","followers_url":"https://api.github.com/users/reaperrr/followers","following_url":"https://api.github.com/users/reaperrr/following{/other_user}","gists_url":"https://api.github.com/users/reaperrr/gists{/gist_id}","starred_url":"https://api.github.com/users/reaperrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaperrr/subscriptions","organizations_url":"https://api.github.com/users/reaperrr/orgs","repos_url":"https://api.github.com/users/reaperrr/repos","events_url":"https://api.github.com/users/reaperrr/events{/privacy}","received_events_url":"https://api.github.com/users/reaperrr/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":106,"state":"open","created_at":"2015-07-18T22:57:47Z","updated_at":"2015-11-01T19:25:51Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-01T04:26:01Z","updated_at":"2015-11-01T19:31:09Z","closed_at":null,"body":"Whilst profiling https://github.com/OpenRA/OpenRA/pull/9627, I came across this hard-to-miss memory sink. It happens each time you start another map. Here's the difference from baseline to after jumping between skirmish and title screen for a while:\r\n\r\nOpenRA.Graphics.TerrainSpriteLayer\r\n+114 instances\r\n+209,198,208 bytes\r\n\r\nAlmost all of that memory is composed of OpenRA.Graphics.Vertex[] inside the TerrainSpriteLayer.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27865703-terrainspritelayer-memory-sink?utm_campaign=plugin&utm_content=tracker%2F36085&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F36085&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments/152854227","html_url":"https://github.com/OpenRA/OpenRA/issues/9841#issuecomment-152854227","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9841","id":152854227,"user":{"login":"RoosterDragon","id":3399086,"avatar_url":"https://avatars.githubusercontent.com/u/3399086?v=3","gravatar_id":"","url":"https://api.github.com/users/RoosterDragon","html_url":"https://github.com/RoosterDragon","followers_url":"https://api.github.com/users/RoosterDragon/followers","following_url":"https://api.github.com/users/RoosterDragon/following{/other_user}","gists_url":"https://api.github.com/users/RoosterDragon/gists{/gist_id}","starred_url":"https://api.github.com/users/RoosterDragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoosterDragon/subscriptions","organizations_url":"https://api.github.com/users/RoosterDragon/orgs","repos_url":"https://api.github.com/users/RoosterDragon/repos","events_url":"https://api.github.com/users/RoosterDragon/events{/privacy}","received_events_url":"https://api.github.com/users/RoosterDragon/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T19:31:09Z","updated_at":"2015-11-01T19:31:09Z","body":"@penev92: You would need to have started dozens of games for this to eat up enough memory to be a likely candidate for your OOM problems. If your can provoke an OOM without starting many games than I expect the root cause of your problem is different."}}