3700 FPS here we go

This commit is contained in:
Dynamitos
2021-04-13 23:09:16 +02:00
parent d5f0fe644f
commit 312ae2af9a
36 changed files with 401 additions and 231 deletions
+3 -1
View File
@@ -43,7 +43,9 @@ void AssetRegistry::importFile(const std::string &filePath)
PMeshAsset AssetRegistry::findMesh(const std::string &filePath)
{
return get().meshes[filePath];
auto it = get().meshes.find(filePath);
assert(it != get().meshes.end());
return it->value;
}
PTextureAsset AssetRegistry::findTexture(const std::string &filePath)