sphair / ClanLib

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

Improved performance UI controls (clan::View and inherited). #78

Closed ArtHome12 closed 8 years ago

ArtHome12 commented 8 years ago

The changes made suitable use of UI controls in the applications running on the clan :: Application :: update(), because now they do not cause repeated redrawing the entire window.

Before making changes on a laptop with a built-in videocard, the window with multiple controls (ButtonView, CheckBoxView, LabelView) at rest FPS was about 800. After start move the mouse through all the controls, FPS sink 100 times - less than 10 frames per second. After making changes there no visible reduction the FPS.

Also small changes in the examples are done.