{"id":1097,"date":"2010-01-21T22:25:40","date_gmt":"2010-01-21T11:25:40","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=1097"},"modified":"2010-01-21T22:25:40","modified_gmt":"2010-01-21T11:25:40","slug":"six-steps-forward-six-steps-backward","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2010\/01\/21\/six-steps-forward-six-steps-backward\/","title":{"rendered":"Six steps forward, six steps backward"},"content":{"rendered":"
It’s always disappointing to do a lot of work, only to have to undo it again.<\/p>\n
I’ve spent the past few hours working on modifying MMORPG Tycoon 2 to keep just one copy of each building model in memory. \u00a0At the moment, each respawn point that you place (for example) stores its own copy of the respawn point model. \u00a0This means that memory grows rather a lot, as you place more and more respawn points. \u00a0The standard solution to this situation is to load the model just once, and then to draw the single model in lots of different places in the world.<\/p>\n
In practice, though, actually making that happen can be a little tricky. \u00a0I’d gone a fair way toward implementing it, before finally realising that the way I was doing it was ugly and difficult; \u00a0it was going to be a nightmare in the long run. \u00a0I certainly learned some things from doing it, but it’s always a bit disappointing to end a session of coding by undoing all your changes, and putting things back the way they were before you’d started.<\/p>\n
At least I do now have a path forward, and I’ll make a little progress along this new direction before it’s time to sleep. \u00a0But I would have liked to have some visible results tonight, and it doesn’t seem like that’s going to happen.<\/p>\n
Oh well.<\/p>\n","protected":false},"excerpt":{"rendered":"
It’s always disappointing to do a lot of work, only to have to undo it again. I’ve spent the past few hours working on modifying MMORPG Tycoon 2 to keep just one copy of each building model in memory. \u00a0At the moment, each respawn point that you place (for example) stores its own copy of…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-hH","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1097"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=1097"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1097\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=1097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=1097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=1097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}