mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 22:13:27 +02:00
performance improvements
* no more freezes because of file IO from hard disk, now we cache sound/spr file buffers * more opengl painter tweaks
This commit is contained in:
@@ -37,6 +37,9 @@ SoundFilePtr SoundFile::loadSoundFile(const std::string& filename)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// cache file buffer to avoid lags from hard drive
|
||||
file->cache();
|
||||
|
||||
char magic[4];
|
||||
file->read(magic, 4);
|
||||
file->seek(0);
|
||||
|
Reference in New Issue
Block a user