Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Honor X11 'Expose' Events.  (Read 4532 times)

0 Members and 1 Guest are viewing this topic.

clort79

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Honor X11 'Expose' Events.
« 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

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:

« Last Edit: January 22, 2020, 12:07:49 am by clort79 »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Honor X11 'Expose' Events.
« Reply #1 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.
Laurent Gomila - SFML developer