On Tuesday, 1 June 2021 at 22:52:41 UTC, Adam D. Ruppe wrote:
On Tuesday, 1 June 2021 at 22:39:08 UTC, Ola Fosheim Grøstad
wrote:
Yes, it does. You get lots of graphic context switches and
poor render-caching performance.
no not really.
you'd have to be really incompetent to do it this wrong.
If each widget imperatively draws itself you get graphic context
switches every time you draw a different graphical element type.
If the render engine manages this, you have much more opportunity
to group similar items. E.g. do all text of one font size in one
GPU operation.
Then you also have the whole issue of backing store (caching)
which cannot be done in an optimal fashion if the widget is in
control.