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

Don't render transparent rectangles

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 8
    • javafx

      During analysis of TableView performance with the SW pipeline I noticed that a lot of fillRect calls are made with Color.TRANSPARENT while compositeMode is SRC_OVER.
      Eliminating those redundant calls gives the benchmark a performance boost of ~20% on low end Windows machines.
      Note that NGRegion rather confusingly uses both javafx.scene.paint and com.sun.prism.paint. Color.TRANSPARENT referred above is from the latter package.
      It might be more universal to implement that optimization in PiscesRenderer (which already optimizes fully opaque colors) though this approach may have higher overhead at such low level.

            Unassigned Unassigned
            omazurov Oleg Mazurov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Imported: