Display the environment loading popup only after 50ms

This commit is contained in:
Guillaume Meunier
2025-10-25 10:30:29 +02:00
parent 149de4eeab
commit 4adfe21987
3 changed files with 16 additions and 8 deletions
+3 -2
View File
@@ -204,7 +204,8 @@ class lobby : public scene_impl<lobby>
environment_item_action environment_item(environment_model & model, bool download_screenshot);
void environment_list(std::vector<environment_model> & model, bool download_screenshot);
void use_environment(const environment_model & model);
void popup_load_environment();
XrTime popup_load_environment_display_time = 0;
void popup_load_environment(XrTime predicted_display_time);
utils::future<std::pair<std::string, std::shared_ptr<entt::registry>>, float> future_environment;
std::string load_environment_status;
@@ -223,7 +224,7 @@ class lobby : public scene_impl<lobby>
void gui_new_server();
void gui_settings();
void gui_post_processing();
void gui_customize();
void gui_customize(XrTime predicted_display_time);
void gui_debug_node_hierarchy(entt::entity root = entt::null);
void gui_debug();
void gui_about();