SFML community forums

General => Feature requests => Topic started by: clort79 on January 21, 2020, 11:00:02 pm

Title: Honor X11 'Expose' Events.
Post by: clort79 on January 21, 2020, 11:00:02 pm
As far as I can see, SFML does not support X11 'expose events'

https://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html#Exposure_Events (https://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html#Exposure_Events)

This means all SFML apps will need to redraw their window constantly, consuming excessive cpu resources under X11, unless a compositing windowmanager is used that renders windows to an offscreen buffer.  We cannot guarantee such will be available.

Without such support, this is the result:
(https://user-images.githubusercontent.com/51511737/71822875-4a6b6000-3096-11ea-97b6-e0329be84779.png)
Title: Re: Honor X11 'Expose' Events.
Post by: Laurent on January 22, 2020, 08:37:40 am
Quote
This means all SFML apps will need to redraw their window constantly
Yes, it's even written in the documentation and tutorials, in big red letters ;)

Quote
consuming excessive cpu resources under X11
"Excessive" is a little... excessive.

SFML is not a desktop UI framework, it's clearly not made for that.