system/ui: Improve UI rendering smoothness for scaled display (#35280)

improve smoothness
pull/35282/head
Dean Lee 1 week ago committed by GitHub
parent 9bbbff14d5
commit 38c1bd096b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      system/ui/lib/application.py

@ -72,6 +72,7 @@ class GuiApplication:
if self._scale != 1.0: if self._scale != 1.0:
rl.set_mouse_scale(1 / self._scale, 1 / self._scale) rl.set_mouse_scale(1 / self._scale, 1 / self._scale)
self._render_texture = rl.load_render_texture(self._width, self._height) self._render_texture = rl.load_render_texture(self._width, self._height)
rl.set_texture_filter(self._render_texture.texture, rl.TextureFilter.TEXTURE_FILTER_BILINEAR)
rl.set_target_fps(fps) rl.set_target_fps(fps)
self._target_fps = fps self._target_fps = fps

Loading…
Cancel
Save