Excessively Slow Tooltip rendering when using the [BR] XML tags

The [BR] XML tag is used in your XML files to denote a carriage-return when formatting text strings for display within a tooltip.

When using the [BR] XML tags in the LeaderTraitText.XML file, as in the following -

"Is known to have escaped a high-security prison colony; why they were there is unknown.[BR][BR]+20% [HS=HS_Crime]Crime[/HS] when assigned as Governor."

causes a noticable rendering performance hit where the tooltip is draw with an extended rectangle and then resized and redrawn, all using the onscreen canvas.

Additionally, this causes a flood of error msgs in the debug.err file:


Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription
Debug Message:  Could not snap child to grid because it doesn't fit in parent rect: UnitTraitToolTipDescription


 

6,866 views 4 replies
Reply #1 Top

Thanks for the report.  We are investigating

Reply #2 Top

I have a screenshot of this occuring.  (had to snip from a video recording...)

 

This is where it is drawing the over-sized tooltip rectangle and subsequently resizes to the appropriate tooltip size.

 

It makes for a very ackward and distracting UI experience.

 


Reply #3 Top

Dorian,

If you've updated to 2.7, can you confirm if you are still getting the excessively slow tooltip rendering?  The problem wasn't the tags, but the output spew to debug log which should be fixed now.

Reply #4 Top

v2.7 made no difference.