Some help on the create_profile_info

Dirk Hohndel dirk at
Sat Jan 25 06:35:36 UTC 2014

On Sat, 2014-01-25 at 12:25 -0200, Tomaz Canabrava wrote:
> Hey,
> So, the main idea of the new profile is that we don't should need to
> redo every calculation when something changes, for instance, when the
> settings for the 'show pp gas' changes, things need to be recalculated
> - but nothing really changed, we just wanted to see the pp gas. this
> is in my opnion a waste of cycles and this makes things not very
> smooth on animations ( there's a bit of hung if an anim is playing. ).
> Specifically for the partial gas pressures, there's three, if any of
> the visibility settings for any of it changes, things get
> recalculated.
> I'd ask a bit of help to break that in a way that this won't get
> reclculated at all ( ie. precalcule it for all of the gases ) and if
> the settting for a particular pp graph is set to visible, we call it's
> item->show() on the new profile.
> I think that separating those functions to only be called when needed
> are a good improvement.

I'm confused. Do you always want to calculate the partial pressure
graphs and just not show them? Or do you want to calculate them the
first time they are requested and then just cache them?


More information about the subsurface mailing list