<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>802</bug_id>
          
          <creation_ts>2013-08-05 15:33:27 +0200</creation_ts>
          <short_desc>Enhance Graph Performance w/ Text Rendering</short_desc>
          <delta_ts>2015-09-27 03:15:00 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>graph</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>803</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>rami.santina</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>FEATURE</cf_type>
          <cf_scm_refs>c3621221b9a563495b4f54fe60e18e8db8cc57fb
d84812b6fb398c73cb3f339ab13d74b7e6822181
34aebbf54491b8f7e98bee3f45f8b58b817a6db5
0af9df19efc3bc31beafdd63e3487b74a97c80a7</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2858</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-08-05 15:33:27 +0200</bug_when>
    <thetext>Text artifacts related to graph (Outlines / Vertices / TextureCoords / .. ) 
shall be cached independent of text size per font used.

Overall enhancement of text rendering performance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3969</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-06-13 08:14:01 +0200</bug_when>
    <thetext>c3621221b9a563495b4f54fe60e18e8db8cc57fb

   Strategy Change:
      - Font.Glyph itself holds it&apos;s OutlineShape
        with it&apos;s default scaling.
        Triangulation is done only once per glyph!
    
      - A CharSequence produces a Region
        by translating and scaling each Glyphs&apos;s OutlineShape.
        This removes the need for re-triangulate - see above.
        See: TextRendererUtil
    
      - The indices of re-added Triangles are
        offset to the new vertices (FIXME, seems not be be accurate yet).
    
      - OutlineShape&apos;s vertices and triangles are reused if &apos;clean&apos;.
    
      - Simplified code
    
      - Reduced copies
    
    API Changes:
      - OutlineShape, Region, ...: See above
    
      - Removed TextRenderer, GlyphShape and GlyphString: Redundant
    
      - Added TextRendererUtil to produce the Region from CharSequence

   Result:
      - Over 600 fps while changing text for each frame.
        Previously only ~60fps max.
    
    TODO:
      - Region shall not hold the triangles itself,
        but the indices instead.
        This will remove the need to swizzle w/ vertices in the Region Renderer impl
        and easies reusage of OutlineShapes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3970</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-06-13 08:14:38 +0200</bug_when>
    <thetext>d84812b6fb398c73cb3f339ab13d74b7e6822181

   - OutlineShape
      - Add DIRTY_VERTICES bit in triangulation,
        which in turn solves the rendering artifact issue.
    
      - transformOutlines(..) -&gt; protected
    
      - Note: Always pick triangles first, then vertices.
        The former renders vertices dirty.
    
    - Region
      - Make triangles / vertices accessible
    
      - Add &apos;validateIndices()&apos; to add indices for triangles,
        code moved from the GLRegion* impl.
        Shall be refined later!
    
    - GLRegion
      - Passing &apos;RegionRenderer&apos; instead of RenderState ..
        reducing argument numbers and aligning all related
        &apos;render&apos; methods while giving association to the RegionRenderer.
    
    - Renderer -&gt; RegionRenderer,
      dropping &apos;intermediate&apos; RegionRenderer
    
      - Dropping draw() in RegionRenderer, should be issued simply
        by GLRegion in a unique fashion.
    
    - Dropping RegionFactory
      Too simple code as-is, simply invoke in Region.create(..)
    
    - Overall:
      - Add &apos;final&apos; qualifier
    
      - Remove overloaded methods
        where rither default args can be used
        or a followup method call completes the &apos;intention&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3971</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-06-13 08:15:33 +0200</bug_when>
    <thetext>0af9df19efc3bc31beafdd63e3487b74a97c80a7
  Performance Note: ~800-1200 fps on uncached text line</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>