afegida cache a resource manager per evitar accessos a disc

This commit is contained in:
2026-03-11 18:59:56 +01:00
parent a65544e8b3
commit b79f1c3424
4 changed files with 31 additions and 11 deletions

View File

@@ -282,6 +282,13 @@ bool Engine::initialize(int width, int height, int zoom, bool fullscreen, AppMod
// No es crítico, continuar sin logo
app_logo_.reset();
}
// Precalentar caché: shapes PNG (evitar I/O en primera activación de PNG_SHAPE)
{
unsigned char* tmp = nullptr; size_t tmp_size = 0;
ResourceManager::loadResource("shapes/jailgames.png", tmp, tmp_size);
delete[] tmp;
}
}
return success;