Ticket #761 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by louisewatson

  • owner changed from Louise Watson to louisewatson
  • status changed from new to assigned

Changed 5 years ago by louisewatson

  • status changed from assigned to closed
  • resolution set to fixed

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.