Provisional light culling

This commit is contained in:
Dynamitos committed 2021-05-10 23:57:55 +02:00
1 parent 0cf13bcff5
commit e00b382d4a
41 files changed
+1072 -330

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ void TextureLoader::importAsset(const std::filesystem::path& filePath)
AssetRegistry::get().textures[asset->getFileName()] = asset;
futures.add(std::async(std::launch::async, [this, filePath, asset] () mutable {
using namespace std::chrono_literals;
std::this_thread::sleep_for(5s);
//std::this_thread::sleep_for(5s);
Gfx::PTexture2D texture = import(filePath);
asset->setTexture(texture);
asset->setStatus(Asset::Status::Ready);