[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/9] sdl2: quick & dirty flicker workaround
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [PATCH 2/9] sdl2: quick & dirty flicker workaround |
Date: |
Thu, 10 Sep 2015 14:40:47 +0200 |
On Wed, Sep 9, 2015 at 1:20 PM, Gerd Hoffmann <address@hidden> wrote:
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
> ui/sdl2-2d.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
Reviewed-by: Marc-André Lureau <address@hidden>
> diff --git a/ui/sdl2-2d.c b/ui/sdl2-2d.c
> index d0b340f..191ee3b 100644
> --- a/ui/sdl2-2d.c
> +++ b/ui/sdl2-2d.c
> @@ -45,10 +45,23 @@ void sdl2_2d_update(DisplayChangeListener *dcl,
> return;
> }
>
> + /*
> + * SDL2 seems to do some double-buffering, and trying to only
> + * update the changed areas results in only one of the two buffers
> + * being updated. Which flickers alot. So lets not try to be
> + * clever do a full update every time ...
> + */
> +#if 0
> rect.x = x;
> rect.y = y;
> rect.w = w;
> rect.h = h;
> +#else
> + rect.x = 0;
> + rect.y = 0;
> + rect.w = surface_width(surf);
> + rect.h = surface_height(surf);
> +#endif
>
> SDL_UpdateTexture(scon->texture, NULL, surface_data(surf),
> surface_stride(surf));
> --
> 1.8.3.1
>
>
--
Marc-André Lureau
[Qemu-devel] [PATCH 2/9] sdl2: quick & dirty flicker workaround, Gerd Hoffmann, 2015/09/09
[Qemu-devel] [PATCH 3/9] ui/console: add opengl context and scanout support interfaces., Gerd Hoffmann, 2015/09/09
[Qemu-devel] [PATCH 9/9] gtk/opengl: add opengl context and scanout support (GtkGLArea), Gerd Hoffmann, 2015/09/09
[Qemu-devel] [PATCH 8/9] gtk/opengl: add opengl context and scanout support (egl), Gerd Hoffmann, 2015/09/09
[Qemu-devel] [PATCH 5/9] virtio-gpu: add 3d mode and virgl rendering support., Gerd Hoffmann, 2015/09/09