raylib: fix window freezing (#36517)

fix window freezing
pull/36553/head
Shane Smiskol 5 days ago committed by GitHub
parent 736e1fa7b7
commit 2cc4885a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/ui/lib/application.py

@ -357,6 +357,8 @@ class GuiApplication:
# Skip rendering when screen is off # Skip rendering when screen is off
if not self._should_render: if not self._should_render:
if PC:
rl.poll_input_events()
time.sleep(1 / self._target_fps) time.sleep(1 / self._target_fps)
yield False yield False
continue continue

Loading…
Cancel
Save