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

Hand tune the Java and SSE based Shadow filter implementations

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx1.0
    • Fix Version/s: fx1.1
    • Component/s: javafx
    • Labels:

      Description

      The Shadow filter is used in many common situations, including a component of the DropShadow and InnerShadow effects and also the PhongLighting effect. Right now any device without hardware (GPU) acceleration will use either a native compiled (SSE enabled) function or a Java method that was written by the automated JSL compiler. The code is surprisingly fast for code that was derived from a Shader source language, but it isn't as fast as it could be by rewriting the inner loops by hand.

      A quick hand-tuning of the inner loops of the Java and SSE backends for Shadow show approximately a 6x improvement in Shadow and DropShadow. Here is a quick table of the results:

                                            radius 10 radius 63
      JSL Java 89 955
      JSL SSE 56 650

      Hand tuned Java 21 150
      Hand tuned SSE 12.5 83

      D3D 5 13

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                flar Jim Graham
                Reporter:
                flar Jim Graham
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Imported: