> It seems like long ago there were tiny rendering differences encountered > between the sw and hardware renderer when rendering rounded edges. Instead of > fixing the root cause, a workaround was added to just render the affected > edges using a manual sw renderer approach. It seems like everyong forgot, and > this workaround is still here. As a result, any region with uniform corner > radius 0 < r <= 4 is rendered using a software renderering approach right now. > > Maybe the issue has been fixed somehow, the linked issue is very unspecific. > Even if not, and there are differences between the renderers, they don't > warrant this performance slowdown. I can't see a difference so far with this > workaround disabled. > > You can see this case being logged when being run with > `-Djavafx.pulseLogger=true`. According to the counters at the end of a render > pass, around 10% of nodes were rendered using this ineffecient approach in > our application. > > This case still happens for non-uniform corner radius values, but that is > somewhat expected. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Christopher Schnick has updated the pull request incrementally with one additional commit since the last revision: Adjust round rect shader formula ------------- Changes: - all: https://git.openjdk.org/jfx/pull/2329/files - new: https://git.openjdk.org/jfx/pull/2329/files/2b2be43d..b9a13d95 Webrevs: - full: https://webrevs.openjdk.org/?repo=jfx&pr=2329&range=01 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2329&range=00-01 Stats: 14 lines in 3 files changed: 7 ins; 0 del; 7 mod Patch: https://git.openjdk.org/jfx/pull/2329.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2329/head:pull/2329 PR: https://git.openjdk.org/jfx/pull/2329
