1
0
Fork 0
forked from len0rd/rockbox

sdl: Keep texture around, upload LCD-parts only

No need to create a new texture for every
rendered frame, unless the scaling method
has been adjusted.

We also don't need to upload the (unchanged)
player interface to GPU memory repeatedly.

+ Remove unused lcd_display_redraw &
having_new_lcd variables

Change-Id: I5bff6aa2d54347a3f2c3afba8d8d7eb9e39f77f7
This commit is contained in:
Christian Soffke 2024-12-22 22:55:27 +01:00
parent 7aaa722a5d
commit 400452180d
8 changed files with 279 additions and 186 deletions

View file

@ -24,7 +24,7 @@
#include "button.h"
#ifdef HAVE_SDL
#include "button-sdl.h"
#include "lcd-sdl.h"
#include "window-sdl.h"
#endif
static struct event_queue button_queue SHAREDBSS_ATTR;
@ -119,7 +119,7 @@ static inline void button_queue_wait(struct queue_event *evp, int timeout)
#else
queue_wait_w_tmo(&button_queue, evp, timeout);
#ifdef HAVE_SDL
sdl_update_window(); /* Window may have been resized */
sdl_window_adjust(); /* Window may have been resized */
#endif
#endif
}