Skip to content

Commit

Permalink
splash screen on flag
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Aug 29, 2024
1 parent 9b3fde1 commit ba3ecd9
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 ba3ecd9

Please sign in to comment.