ShaderCache: Use imgui for shader compilation dialog

This commit is contained in:
Stenzek
2018-11-28 23:36:39 +10:00
parent e4b205c769
commit 78588ce79d
2 changed files with 23 additions and 5 deletions

View File

@ -77,7 +77,7 @@ void AsyncShaderCompiler::WaitUntilCompletion(
// Wait a second before opening a progress dialog.
// This way, if the operation completes quickly, we don't annoy the user.
constexpr u32 CHECK_INTERVAL_MS = 50;
constexpr u32 CHECK_INTERVAL_MS = 1000 / 30;
constexpr auto CHECK_INTERVAL = std::chrono::milliseconds(CHECK_INTERVAL_MS);
for (u32 i = 0; i < (1000 / CHECK_INTERVAL_MS); i++)
{