1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Print time taken and request attention when lightmaps are done baking

Since lightmap baking can take a very long time, printing the time
spent can be useful for users tweaking the lightmap settings
to optimize bake times.

Completing lightmap baking will also request attention, which is
useful if you're doing something else while waiting for lightmaps
to bake.
This commit is contained in:
Hugo Locurcio
2021-12-31 02:40:36 +01:00
parent 91b97dac03
commit 0761605435
2 changed files with 11 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ class LightmapGIEditorPlugin : public EditorPlugin {
EditorFileDialog *file_dialog;
static EditorProgress *tmp_progress;
static bool bake_func_step(float p_progress, const String &p_description, void *, bool p_refresh);
static void bake_func_end();
static void bake_func_end(uint64_t p_time_started);
void _bake_select_file(const String &p_file);
void _bake();