I wondered if the level streaming loads directly from the HDD. My first thought was if that would not be to slow, or if the chunks are just loaded into RAM and asynchronously processed if appropriate or something I didn't thought of yet.

  • \$\begingroup\$ Every software that handles large amounts of data will employ several caching strategies to compensate for different device speeds. So yes, it is very likely that most games will utilize in-memory data caches do reduce the cost of file IO. \$\endgroup\$ – glampert Jan 27 '15 at 14:19

A lot of engines uses both in a two steps loading approach:

  1. Load groups of compressed chunks (level/world sections) off the storage device, slightly in advance if possible.

  2. Decompress the small chunks within from RAM into an active usable format when they are needed.

Keeping the larger compressed chunk groups cached in RAM for a little while in case the player walks back and forth.

In your larger groups you can put list of local assets (textures, meshes to instantiate, etc) to preload as well.


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.