Senior Member
Join Date: May 2013
Posts: 1,458
|
Quote:
It's not impeding any function. But it is strange. Sorry, I should say three times for Movement, which is linked to Agility. |
|
#11 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Yeah, visual elements can get regenerated several times. Does that happen to be the first item in the table - that could mean a pass specifically to get the height of the first element, which will then be used to lay out the rest of the table.
Is it an option to build all this text in a component field, which the visual element can just look up? That saves the foreach from having to run so many times. |
#12 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
Quote:
As to the second part of your comment ... maybe, but that wouldn't solve my whole problem, and I'm not sure that would be the best solution. There are attributes, skills, and specializations. I'm emulating the official character sheet in putting all things related to a given attribute on the same line. So three columns: Attributes | Skills | Specializations I have a template that includes: - One portal for attributes that looks up each attribute. - One portal for skills that looks up each skill linked to that attribute. - One portal for specializations that looks up each skill linked to that attribute, then for each skill, it looks up each specialization linked to that skill. Wherever I determine these output fields, I'd have to have equivalent loops somewhere. The loops that will run the least are the ones for printing character sheets. |
|
#13 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Hero Lab now has tests to determine if it needs to regenerate the text of a field between evaluations, in order to speed up the time required to recalculate everything on a character, so if all of that is calculated in component scripts and stored in fields, then it will probably not need to be recalculated for that same character during a single period that the user has HL open, but if the calculations are in the visual elements, they're recalculated every time the user looks at that tab, and every time they change something while that tab is open.
|
#14 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
Quote:
I still feel like there will be more recalculation during character creation than if I just left these scripts on the character sheet. |
|
#15 |
|
|