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

@@ -1,5 +1,6 @@
#pragma once
#include <map>
#include <string>
#include <vector>
@@ -79,4 +80,7 @@ private:
// Instancia del pack (nullptr si no está cargado)
static ResourcePack* resourcePack_;
// Caché en RAM para evitar I/O repetido en el bucle principal
static std::map<std::string, std::vector<unsigned char>> cache_;
};