
22 Aug
2023
22 Aug
'23
12:10 a.m.
On Mon, 21 Aug 2023 at 12:13, Alper Nebi Yasak alpernebiyasak@gmail.com wrote:
Now that we have video damage tracking, try to reduce the SDL display work by copying only the updated regions onto the SDL texture instead of the entire framebuffer. We still have to do RenderClear and RenderCopy the whole texture onto the renderer, but that allegedly happens in the GPU.
Signed-off-by: Alper Nebi Yasak alpernebiyasak@gmail.com
The second half of copy_to_texture is untested.
arch/sandbox/cpu/sdl.c | 25 +++++++++++++++++-------- arch/sandbox/include/asm/sdl.h | 9 +++++++-- drivers/video/sandbox_sdl.c | 16 +++++++++++++++- 3 files changed, 39 insertions(+), 11 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org