[ATOM-15600] Fix cpu over usage when loading shader variant assets. (#1014)
This is a temporary fix, in the future ShaderVariantAsyncLoader will use OnCatalogAssetRemoved()/ OnCatalogAssetAdded(). Signed-off-by: garrieta <garrieta@amazon.com>
This commit is contained in:
@@ -150,10 +150,7 @@ namespace AZ
|
||||
}
|
||||
}
|
||||
|
||||
if (!shaderVariantTreePendingRequests.empty() || !shaderVariantPendingRequests.empty())
|
||||
{
|
||||
AZStd::this_thread::sleep_for(AZStd::chrono::milliseconds(1000));
|
||||
}
|
||||
AZStd::this_thread::sleep_for(AZStd::chrono::milliseconds(1000));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user