EEVEE/Viewport: Make info text when compiling shaders more clear

The N in `Compiling Shaders N` in Text Info, is the number of how many
shaders are left in the queue. It's a countdown, but this wasn't mentioned
and led to confusion.

Ideally this text would be like Cycles' "Samples 50/100", but in EEVEE it's
not easy to guess how many shaders are left (this number could even go
up mid-compilation).

In the past there used to be a progress bar but it's also confusing because
it could be 90/100 shaders done, but the remaining 10 are slow to compile.

Change the text to "Compiling Shaders (N remaining)" so it's easier to
understand what is going on. Similar to how some game engines do.
This commit is contained in:
Pablo Vazquez 2022-11-16 14:28:12 +01:00
parent 0ebb7ab41f
commit e4871b2835
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ static void eevee_cache_finish(void *vedata)
}
if (g_data->queued_shaders_count > 0) {
SNPRINTF(ved->info, "Compiling Shaders %d", g_data->queued_shaders_count);
SNPRINTF(ved->info, "Compiling Shaders (%d remaining)", g_data->queued_shaders_count);
}
}

View File

@ -337,7 +337,7 @@ void Instance::draw_viewport(DefaultFramebufferList *dfbl)
if (materials.queued_shaders_count > 0) {
std::stringstream ss;
ss << "Compiling Shaders " << materials.queued_shaders_count;
ss << "Compiling Shaders (" << materials.queued_shaders_count << " remaining)";
info = ss.str();
}
}