Performance with GtkStack

Hi,

As i understand it, Widgets on Stack Pages don’t get hidden when we switch page, they are visible although not in view. Is my assumption correct that all CSS state changes get applied even to those pages and widgets which are not currently in view? Especially the lovely backdrop state.

So if i would want to create an application that does not open many Dialogs and rather switch pages, i would run soon into performance problems the more pages i add.

Is there a trick or solution to this?

Maybe call hide() on the top page container as soon as the page is not in view? I guess css state changes would not affect hidden widgets? Has this other drawbacks?
The other idea i had is, create everything always on demand, but this also could be slow depending on how expensive the page is i want to switch to.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.