I'm working on a game and I'm wondering if it is better for performance and memory usage to have one large file containing all my assets (the assets are in a custom format) with a look up table at the front telling the location of the asset in the file or is it better to have each asset in its own file?

Thanks, Philip

| improve this question | | | | |
  • 1
    \$\begingroup\$ Personally I would suggest grouping them into logical pieces. Assets that are always loaded together should be grouped in one file. For general assets for global availability I'd probably go fo the one big library style, but I think you should profile your solutions and then choose whatever was more efficient. \$\endgroup\$ – LukeG Jan 31 '16 at 22:00
  • \$\begingroup\$ Many games use compressed archives and mount them using a virtual file system which transparently fetches files from the compressed archive. \$\endgroup\$ – Exilyth Feb 19 '16 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.