Opened 16 years ago

Closed 16 years ago

#761 closed defect (fixed)

Annotation drawing should be faster when display is dense

Reported by: louisewatson Owned by: louisewatson
Priority: medium Milestone: 2.2
Component: Rendering Service Version: 2.0.2
Severity: minor Keywords:
Cc: External ID: 1121643

Description

When there are many annotations displayed, the current drawing time is too slow.

Change History (2)

comment:1 by louisewatson, 16 years ago

Owner: changed from Louise Watson to louisewatson
Status: newassigned

comment:2 by louisewatson, 16 years ago

Resolution: fixed
Status: assignedclosed

Fixed by submission http://trac.osgeo.org/mapguide/changeset/3462

The changes made to improve the annotation drawing speed were:

  1. When text height is 3 pixels or less a line is drawn instead of the text which would not have been readable. This action is controlled by the value returned by the new SE_Renderer::OptimizeGeometry method. That is, if OptimizeGeometry returns true, then it is OK to perform drawing optimizations. If a renderer does not wish to use optimization, then it needs to override the OptimizeGeometry method and return false.
  2. The result of the call to RS_FontEngine::GetTextMetrics is now stored in the

SE_RenderText object so that this data can be reused rather than recalculated when the text is drawn.

Note: See TracTickets for help on using tickets.