Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4128406

drawing polylines too slow when putting the graphics to the screen through AWT

    Details

    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_95

      Description

      We have been evaluating the speed of Java graphics with a simple test case
      that simply reads in a file with polylines in it and then outputing them in a
      tight loop. We discovered that it was rather slow. We investigated the
      process of putting the graphics to the screen through AWT, and found that the
      main reason that it is slow is that for each call to polyline (which ends up
      at the native function awtGraphics::polyline in awt_graphics.cpp) a call to
      the inline method GetDC causes the clipping rectangle to get set in the DC,
      unless the Graphis object is set up not to clip.



        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                flar Jim Graham
                Reporter:
                jbenoit Jonathan Benoit (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: