|Re: [hatari-devel] screen no more "refreshed" when Hatari is paused with SDL2 ?|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
On 01/26/2018 03:03 AM, Thorsten Otto wrote:
On Donnerstag, 25. Januar 2018 23:45:59 CET Nicolas Pomarède wrote:
Do other see this under Linux ? Maybe it's part of SDL2 to not refresh
in this case for better rendering performance,
It's been there since Thomas added SDL2 support to Hatari,
i.e. already before v2.0 release.
That might also depend on the window manager in use. If you have an
compositing window manager, they usually maintain a backing store of the
window contents to be able to blend them over other windows. In that case, the
application might not even get a redraw event when you move windows around.
The application can also request a backing store explicitly, but it is up to
the window manager to honor this or not.
SDL 2 doesn't seem to have any option for that.
I looked more into the code, and Hatari SDL eventloop didn't handle
expose events properly. That should now be fixed: