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

Simple primitives (rectangle and lines) are slow when rendered with a transform

XMLWordPrintable

    • 2d
    • b23
    • generic
    • generic
    • Verified

        A short test case is attached which shows that simple transformed rectangle
        fills and AA rectangles are up to 20 or more times slower than simple
        untransformed rectangle fills, even on the latest hardware. With the power
        of the hardware GPUs in todays machines, there should be little, if any,
        difference in the rendering speed of these primitives.

        Indeed, experiments show that we can achieve near-parity for transformed and
        AA rectangles and wide lines using simple variations of the D3D and OGL
        FillRect primitive and a small Pixel Shader program that runs on most
        graphics cards that have been common for the past 3 or 4 years.

              flar Jim Graham
              flar Jim Graham
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: