[Scummvm-devel] SCI: Some more TODOs

Marcus Comstedt marcus at mc.pp.se
Sun Feb 22 17:41:14 CET 2009


Max Horn <max at quendi.de> writes:

> 3) All the other file code in kFileIO may have to be extended to work  
> with both savefiles and files in the game's resource directory. That  
> is, when writing a file, a savefile would always be used. When reading  
> a file, we would first check whether a savefile with the right name  
> (after mangling) exists. If not, we'd look in the gamedir. (We do  
> something similar in SCUMM HE.)

Note that on the Dreamcast at least, checking whether a savefile
exists is rather slow.  This is the reason the savefile manager
has a mechanism for listing which savefiles exist (linear complexity)
rather than having the engine probe for X named files sequentially
(quadratic complexity).  So if the engine needs to check for existence
of a save file every time it should open a gamedir file, I think that
would be a rather noticable performance hit.  (I don't know how the
SCI engine works, so maybe all game data reads are not handled this
way?)


  // Marcus






More information about the Scummvm-devel mailing list