Which method is the most efficient when it comes to tile maps. Or does it depend on the situation at hand.
Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 26 January 2014 - 12:30 AM
Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.
Also check out my personal website at bryanwagstaff.com, where I occasionally write about assorted stuff.
Posted 26 January 2014 - 03:41 AM
"Most efficient" cannot be qualified. Test both and see which is faster for your game in your specific setup.
Note that with text it does help to use zlib or the like to compress it. In some cases, text will compress better than binary equivalents.
I would not even remotely worry about efficiency until you're closer to shipping your game. During development and testing a few milliseconds of load time is not going to matter. Being able to easily add your levels to Subversion/Mercurial/Perforce/git however and merge or review changes _is_ going to be very handy, however.
Game engines typically should support both a convenient source format for data (text in many cases where it makes sense) and a highly compressed/efficient packed form. The version of the game you ship only supports reading the packed form and you only ship the packed resources. The developers use builds that support both forms. Tools are created that convert from the convenient format to the efficient format for making releases. The development versions of the engine have a variety of other niceties like allowing content creators to drag-n-drop files onto the game add new assets, hot-keys to reload all in-game content, or automatic detection of modified source assets and automatic reloading. None of those things are _efficient_ in terms of CPU costs, but they are extremely efficient in terms of getting work done.
Don't optimize for the CPU too early. Optimize for your time.
Game Developer, C++ Geek, Dragon Slayer - http://seanmiddleditch.com
C++ SG14 "Games & Low Latency" - Co-chair - public forums
Wargaming Seattle - Lead Server Engineer - We're hiring!
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.