Sign in to follow this  
reuomi

Sugestions For faster load times

Recommended Posts

Don't seek around files a lot -- read sequentially if possible. If it's a file on slower media, particularly optical, then reading the whole file into memory at once may be beneficial.
If you don't need some resource immediately, consider bringing up the main UI and loading that resource in the background, stalling only if the load hasn't finished by the time it's needed.

Share this post


Link to post
Share on other sites
Organization... structure files so that you can get in and out quickly and don't have to scrawl through large files often. Stagger file loads, predict file operations and cache sections at a time. ie... if you know a resource load is coming, instead of waiting until the absolute last minute to load the resource, why not start loading parts of it ahead of time in the background without interrupting play. That's not exactly faster file loading, but that can help to offset some of the time loss.

Share this post


Link to post
Share on other sites
Especially with binary formats, design the file format such that the data is neatly organized into meaningful sections and tagged such that you can easily find the sections you need. Have a look at how some real-world formats work (over here) for inspiration.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this