sphair / ClanLib

ClanLib is a cross platform C++ toolkit library.
Other
344 stars 76 forks source link

X11Window: Reduce set_viewport() calls to reduce resize flicker corruption #66

Closed keigen-shu closed 9 years ago

keigen-shu commented 9 years ago

This is a workaround to reduce flickering corruption that happens when resizing the window. The changes are as follows:

Note: It seems that window flickering when resizing very common problem; even glxgearshas flickering problems when resizing. Most sources online recommend always re-drawing the entire screen when receiving the X11 Expose event (rather buffering them first) which implemented in the last commit.

keigen-shu commented 9 years ago

Closing because there are still some problems relating to actual window sizing (after X11 borders and WM added frame extents) on X11Window. Will re-open once I go through all of it.

rombust commented 9 years ago

Requested to close