r/JavaFX • u/xdsswar • Jun 07 '26
JavaFX in the wild! Javafx with custom skia rendering pipeline
Hit the wall with javafx's limitations one too many times. so i spent the last few months rebuilding it from the inside. calling it skia-fx.
replaced the entire rendering pipeline with skia GPU. zero-copy where possible, CPU fallback when needed. 611fps on a dashboard isn't a typo.
swapped webkit out for blink + v8. actual chromium. youtube at 8k works. resize without flicker. no frame distortion.
the media stack now loads ffmpeg as a plugin. D3D11VA hardware decode. 8k AV1, HEVC, the formats that actually exist in 2026. pure JavaFX node — no embedded HWND, no pixel buffer roundtrip, no canvas abuse.
custom title bars that actually behave. native hit-testing, windows 11 snap layouts, pixel perfect at any DPI.
public API unchanged. your existing javafx code runs on it as-is.
still cooking: a true SVG node and a proper PDF module. both coming.
months of work. finally have screenshots worth showing ,
windows build dropping soon. will open it up when it's ready.
Here is the Repo , CPU rendering path is not ok, use GPU
NOTE : THIS IS A WORK IN PROGRESS , NOT STABLE.





5
u/idontlikegudeg Jun 07 '26
That’s pretty awesome! But I have many questions. Is it windows only? How does it compare to the new DirectX (whatever the new version is) renderer (I think I saw the JavaFX guys are working on bumping the DirectX version either on the mailing list or their GitHub activity)? I think the SVG node would be a welcome addition to core JavaFX, but I guess it uses Skia directly for rendering and cannot be simply upstreamed?
And what are the walls you kept hitting with upstream JavaFX? For me, it it’s mainly:
- really bad clipping performance (because each time setting a clip path, an anti-aliased mask is rendered and then used to blend)
- errors when rendering large hidpi content on Mac, but either this has been fixed in a recent update (maybe 25.0.2?) or some OS update fixed it.
3
u/Wootery Jun 07 '26
Very cool. Have you considered proposing it be merged into the main JavaFX project?
2
u/_DystopianSnowman Jun 09 '26
I've seen your name pop up here and there and each time I think: That dude is crazy! (In a positive way, though.)
I'm really impressed! Not going to lie.
2
u/SDIDSA Jun 10 '26
very very welcomed post on my feed, this addresses many of the issues i've faced myself trying to build modern performant apps with javafx, i would love to contribute a thing or two from my work
cheers on the awesome project
1
u/LooseCartographer989 Jun 08 '26
That’s awesome. I personally think that javafx most notorious weakness is D3D9. Besides the fact that gluon launches new versions often, seems like the language itself is stuck in 2011. Crazy how they have ignored rendering pipeline entirely, which makes your project charming.
I would love to use skia, is your project available to use?
1
u/No-Weird2099 Jun 15 '26
This looks like a LOT of work. Do you have a sponsoring project? In these sense a real world use case which pays of for all this work. And also replacing webkit with chrome is really amazing, so did you have time to expose the chrome internal to javafx through ffm or something? For example something as simple as managing cookies store, reloading cookies from disk, these kind of things are not provided in javafx out of box you need to access internal api. How would someone go about it in your custom build?
0
u/Siedlerchr Jun 07 '26
Funny how everyone keeps reinventing the wheel. Why not just use Compose Multiplatform, which is essentially using skia https://kotlinlang.org/compose-multiplatform/ It is targeting Kotlin but that's not a big deal.
1
u/XeonG8 Jun 30 '26
javafx seems so behind and then some one just does this, but not being production ready and documentation support etc being behind, I dunno nice though
1
u/Guilty_Village_958 Aug 20 '26
I appreciate this work a lot. And for multiple reasons (i) upgrading javafx instead of forking and making yet another new library like jetbrains people (ii) doing the low level work which bites if you don't know what you are doing --- a thankless job i must add (iii) showed it is possible and using it in production (i guess) in your own apps, inspiring the main javafx maintainers to pushing boundaries (iv) made your own language to solve problems faced along this path.