{"action":"created","issue":{"url":"https://api.github.com/repos/iminurnamez/pyroller/issues/179","labels_url":"https://api.github.com/repos/iminurnamez/pyroller/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/iminurnamez/pyroller/issues/179/comments","events_url":"https://api.github.com/repos/iminurnamez/pyroller/issues/179/events","html_url":"https://github.com/iminurnamez/pyroller/issues/179","id":93850704,"number":179,"title":"Implementing a State Stack","user":{"login":"MarquisLP","id":9592685,"avatar_url":"https://avatars.githubusercontent.com/u/9592685?v=3","gravatar_id":"","url":"https://api.github.com/users/MarquisLP","html_url":"https://github.com/MarquisLP","followers_url":"https://api.github.com/users/MarquisLP/followers","following_url":"https://api.github.com/users/MarquisLP/following{/other_user}","gists_url":"https://api.github.com/users/MarquisLP/gists{/gist_id}","starred_url":"https://api.github.com/users/MarquisLP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarquisLP/subscriptions","organizations_url":"https://api.github.com/users/MarquisLP/orgs","repos_url":"https://api.github.com/users/MarquisLP/repos","events_url":"https://api.github.com/users/MarquisLP/events{/privacy}","received_events_url":"https://api.github.com/users/MarquisLP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-08T17:53:32Z","updated_at":"2015-07-14T03:13:47Z","closed_at":null,"body":"Given how many states comprise the game, I think it'd be better to have states loaded sequentially based on when they're needed to be shown, rather than loading them all at once into memory. Also, when the player leaves a state, ideally that state object would also be discarded to free up some memory.\r\n\r\nThe best solution would involve a stack for pushing and popping the currently-active state, though that would require some threading to have new states load smoothly in the background.\r\n\r\nIf this sounds like a good idea, I'd be more than happy to start laying the groundwork."},"comment":{"url":"https://api.github.com/repos/iminurnamez/pyroller/issues/comments/121120898","html_url":"https://github.com/iminurnamez/pyroller/issues/179#issuecomment-121120898","issue_url":"https://api.github.com/repos/iminurnamez/pyroller/issues/179","id":121120898,"user":{"login":"bitcraft","id":556711,"avatar_url":"https://avatars.githubusercontent.com/u/556711?v=3","gravatar_id":"","url":"https://api.github.com/users/bitcraft","html_url":"https://github.com/bitcraft","followers_url":"https://api.github.com/users/bitcraft/followers","following_url":"https://api.github.com/users/bitcraft/following{/other_user}","gists_url":"https://api.github.com/users/bitcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcraft/subscriptions","organizations_url":"https://api.github.com/users/bitcraft/orgs","repos_url":"https://api.github.com/users/bitcraft/repos","events_url":"https://api.github.com/users/bitcraft/events{/privacy}","received_events_url":"https://api.github.com/users/bitcraft/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T03:13:47Z","updated_at":"2015-07-14T03:13:47Z","body":"I've implemented states being instanced on demand, but not a stack, as it was deemed too complex for the scope of the project, and what we have is working well enough.  Any other comments, or shall we close this issue?"}}