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

Canvas setGlobalBlendMode is crazy slow

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Environment:

      Mac

      Description

      When you set the blend mode on the canvas graphics context with setGlobalBlendMode it does the blend on the whole canvas size for each draw call not the size of the drawn graphic. So in my example I am drawing 100s of 8x8 pixel circles into a 1024x768 canvas and it is doing 1024x768 into 1024x768 100s of times once for each 8x8 pixel circle. This grinds the whole computer to a halt.

      To reproduce I have attached a version of my app, I have made the default window size small so it doesn't kill the whole machine for me. If you make it big I find it very hard to force quit the application as the machine is so slow.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                flar Jim Graham
                Reporter:
                jasper Jasper Potts
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: