Use multimap for indexing surfaces (#771)

* Use an std::map for faster texture cache lookup

* Surface cache: Use map instead of multimap, optimize `find` to perform tree scan

* Add comments
This commit is contained in:
wheremyfoodat
2025-07-04 14:23:08 +03:00
committed by GitHub
parent 80840b6c5e
commit d06f600b3a
2 changed files with 69 additions and 38 deletions

View File

@@ -172,4 +172,4 @@ struct DepthBuffer {
size_t sizeInBytes() {
return (size_t)size.x() * (size_t)size.y() * PICA::sizePerPixel(format);
}
};
};