{"action":"opened","issue":{"url":"https://api.github.com/repos/Eschnigma/Batty-Blast/issues/44","labels_url":"https://api.github.com/repos/Eschnigma/Batty-Blast/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/Eschnigma/Batty-Blast/issues/44/comments","events_url":"https://api.github.com/repos/Eschnigma/Batty-Blast/issues/44/events","html_url":"https://github.com/Eschnigma/Batty-Blast/issues/44","id":97298094,"number":44,"title":"Build Resource Manager","user":{"login":"Eschnigma","id":11087355,"avatar_url":"https://avatars.githubusercontent.com/u/11087355?v=3","gravatar_id":"","url":"https://api.github.com/users/Eschnigma","html_url":"https://github.com/Eschnigma","followers_url":"https://api.github.com/users/Eschnigma/followers","following_url":"https://api.github.com/users/Eschnigma/following{/other_user}","gists_url":"https://api.github.com/users/Eschnigma/gists{/gist_id}","starred_url":"https://api.github.com/users/Eschnigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eschnigma/subscriptions","organizations_url":"https://api.github.com/users/Eschnigma/orgs","repos_url":"https://api.github.com/users/Eschnigma/repos","events_url":"https://api.github.com/users/Eschnigma/events{/privacy}","received_events_url":"https://api.github.com/users/Eschnigma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Eschnigma/Batty-Blast/labels/todo","name":"todo","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"Eschnigma","id":11087355,"avatar_url":"https://avatars.githubusercontent.com/u/11087355?v=3","gravatar_id":"","url":"https://api.github.com/users/Eschnigma","html_url":"https://github.com/Eschnigma","followers_url":"https://api.github.com/users/Eschnigma/followers","following_url":"https://api.github.com/users/Eschnigma/following{/other_user}","gists_url":"https://api.github.com/users/Eschnigma/gists{/gist_id}","starred_url":"https://api.github.com/users/Eschnigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eschnigma/subscriptions","organizations_url":"https://api.github.com/users/Eschnigma/orgs","repos_url":"https://api.github.com/users/Eschnigma/repos","events_url":"https://api.github.com/users/Eschnigma/events{/privacy}","received_events_url":"https://api.github.com/users/Eschnigma/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Eschnigma/Batty-Blast/milestones/2","html_url":"https://github.com/Eschnigma/Batty-Blast/milestones/0.1.1%20Feather","labels_url":"https://api.github.com/repos/Eschnigma/Batty-Blast/milestones/2/labels","id":1226042,"number":2,"title":"0.1.1 Feather","description":"The game will *look* the same as 0.1.0, but I should introduce some features to dramatically lower memory usage and disk reading times:\r\n\r\n1. A resource manager ( textures, etc ) should be introduced. Instead of assigning new memory every time Render::loadGraphic is called, it should keep a map of textures loaded and how many objects are using it. Only when the counter is at 0, memory should be assigned or cleared.\r\n\r\n2. A file manager should be introduced, to keep files loaded in memory either until they are no longer required, or until a certain amount of time has passed.","creator":{"login":"Eschnigma","id":11087355,"avatar_url":"https://avatars.githubusercontent.com/u/11087355?v=3","gravatar_id":"","url":"https://api.github.com/users/Eschnigma","html_url":"https://github.com/Eschnigma","followers_url":"https://api.github.com/users/Eschnigma/followers","following_url":"https://api.github.com/users/Eschnigma/following{/other_user}","gists_url":"https://api.github.com/users/Eschnigma/gists{/gist_id}","starred_url":"https://api.github.com/users/Eschnigma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eschnigma/subscriptions","organizations_url":"https://api.github.com/users/Eschnigma/orgs","repos_url":"https://api.github.com/users/Eschnigma/repos","events_url":"https://api.github.com/users/Eschnigma/events{/privacy}","received_events_url":"https://api.github.com/users/Eschnigma/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-07-26T07:44:27Z","updated_at":"2015-07-26T08:30:20Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-07-26T08:30:20Z","updated_at":"2015-07-26T08:30:20Z","closed_at":null,"body":"Too much memory is used loading the same textures multiple times ( example: bullets ). As mentioned in the Milestone description, we should ony load those textures once.\r\n\r\nWe could set up some of them to never actually be taken out of memory - such as the player textures or some menu GUI elements, since they'll come back several times during the play session."}}