Skip to content

Commit

Permalink
show splash screen only when show_logo is true (#752)
Browse files Browse the repository at this point in the history
splash screen on flag
  • Loading branch information
maxime-desroches authored Sep 1, 2024
1 parent e47791f commit 8769632
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions metadrive/engine/core/engine_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ def __init__(self, global_config):
if self.mode == RENDER_MODE_ONSCREEN and (not self.global_config["debug"]):
if self.global_config["show_logo"]:
self._window_logo = attach_logo(self)
self._loading_logo = attach_cover_image(
window_width=self.get_size()[0], window_height=self.get_size()[1]
)
for i in range(5):
self.graphicsEngine.renderFrame()
self.taskMgr.add(self.remove_logo, "remove _loading_logo in first frame")
self._loading_logo = attach_cover_image(
window_width=self.get_size()[0], window_height=self.get_size()[1]
)
for i in range(5):
self.graphicsEngine.renderFrame()
self.taskMgr.add(self.remove_logo, "remove _loading_logo in first frame")

self.closed = False

Expand Down

0 comments on commit 8769632

Please sign in to comment.