[mapguide-trac] #761: Annotation drawing should be faster when display is dense

MapGuide Open Source trac_mapguide at osgeo.org
Tue Nov 18 11:35:50 EST 2008


#761: Annotation drawing should be faster when display is dense
-------------------------------+--------------------------------------------
 Reporter:  louisewatson       |         Owner:  louisewatson
     Type:  defect             |        Status:  closed      
 Priority:  medium             |     Milestone:  2.2         
Component:  Rendering Service  |       Version:  2.0.2       
 Severity:  minor              |    Resolution:  fixed       
 Keywords:                     |   External_id:  1121643     
-------------------------------+--------------------------------------------
Changes (by louisewatson):

  * status:  assigned => closed
  * resolution:  => fixed

Comment:

 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.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/761#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list