removed lots of unnecessary seek()s and read()s by keeping the datafiles' index tables in memory instead of accessing them over and over again, which caused major slowdowns with cd accesses.
Also, the caching of datafiles depends on the memory usage now, not on the number of screens that the player entered in the meantime. The old behaviour made the engine run out of memory on the PS2. svn-id: r16843
This commit is contained in:
parent
6942100a94
commit
fd5a9be26e
4 changed files with 161 additions and 133 deletions
|
@ -46,10 +46,6 @@ void Screen::initBackground(int32 res, int32 new_palette) {
|
|||
|
||||
assert(res);
|
||||
|
||||
// The resources age every time a new room is entered.
|
||||
_vm->_resman->passTime();
|
||||
_vm->_resman->expireOldResources();
|
||||
|
||||
_vm->_sound->clearFxQueue();
|
||||
waitForFade();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue