diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-12-31 02:40:36 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-12-31 02:40:36 +0100 |
commit | 0761605435d6cd9c8e37de8bf69fcbc439aa699b (patch) | |
tree | ed2c43cfbcba2023170c1c7d093c57d3d822d180 /editor/plugins/lightmap_gi_editor_plugin.h | |
parent | 91b97dac03996c4b8791633ea6fa8fdc47852cb6 (diff) | |
download | redot-engine-0761605435d6cd9c8e37de8bf69fcbc439aa699b.tar.gz |
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.
Diffstat (limited to 'editor/plugins/lightmap_gi_editor_plugin.h')
-rw-r--r-- | editor/plugins/lightmap_gi_editor_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/lightmap_gi_editor_plugin.h b/editor/plugins/lightmap_gi_editor_plugin.h index 12d080d6be..de877037df 100644 --- a/editor/plugins/lightmap_gi_editor_plugin.h +++ b/editor/plugins/lightmap_gi_editor_plugin.h @@ -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(); |