Results 1 to 4 of 4

Thread: Line Speed drawing under Ogles 1.0 + 2700G

  1. #1
    Junior Member
    Join Date
    Jun 2007

    Line Speed drawing under Ogles 1.0 + 2700G

    I'm making a benchmark under Ogles 1.0 with 2700G

    The scene is a typical map drawing.. some areas for a total of 29K triangles and 11K vertex.... and some of this area contours.

    Initially I make a lot of calls (800) to the drawElement to draw lines using GL_LINE_STRIP.. but performance were not good.. much worst than triangles.. and we thought the problem was the number of calls to the primitive.
    To avoid this I created a single array drawn using GL_LINES.. in this way I have to repeat a lot of vertexes but I can simulate the pen up and i can call the DrawElement only one time.
    The performance gain is significant, but related to triangles speed it seems not enough.

    I also made a test to draw line as triangles, but if I do in this way, when the triangle collapse, it disappears.. instead the line, if drawn it never disappears...

    29K triangles, 11K vertex
    40 millis

    6.5K vertex, line width 1.0
    50 millis

    How can I draw line quickly ?

  2. #2
    Junior Member
    Join Date
    Jun 2007
    No one could help me ?

  3. #3
    Senior Member
    Join Date
    May 2006
    Triangles need to have an area to be drawn, there is no way around this. Lines are drawn as two triangles in hardware, and they're given a width by the hardware by displacing the vertices along the "line normal" by half the line width, in both directions.

    You could do this manually and generate a single triangle strip from your line strips (using two degenerate triangles to "connect" the line strips). Note that you would have to update the vertices when you zoom in or out, if you want a constant line width in screen space.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum |

  4. #4
    Junior Member
    Join Date
    Jun 2007
    Thanks Xmas..
    Now the speed is increased and also the "resize" function is quick.

Similar Threads

  1. Help drawing line primitives
    By DominicPukallus in forum Developers Coding:Beginner
    Replies: 0
    Last Post: 09-23-2011, 07:19 PM
  2. Drawing Line Problem
    By Phinehas in forum Developers Coding:Beginner
    Replies: 2
    Last Post: 01-12-2011, 03:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts