Swing vs FX performances

45 views
Skip to first unread message

Olivier Brault

unread,
Oct 16, 2017, 5:32:07 AM10/16/17
to marlin-renderer
Hi
Just a simple and naive question :
Is there a difference in performance between Swing and FX when using Marlin Renderer ?

Thanks in advance.

Olivier

Laurent Bourgès

unread,
Oct 17, 2017, 4:19:54 PM10/17/17
to marlin-...@googlegroups.com
Hi,

Just a simple and naive question :
Is there a difference in performance between Swing and FX when using Marlin Renderer ?

Java2D & JavaFX are different APIs and have their own rendering pipelines.

Recently I made some tests with both MapBench & MapBenchFX and it seems pixel blending loops are slightly faster with JavaFX (nvidia shader support).

However, I usually use Java2D for image rendering (but supports also some GPU acceleration via VolatileImage) although JavaFX is mainly for desktop (D3D & OpenGL ES shaders) and is only single-threaded.
 
Maybe I could run some tests using my MapDemo (2D) and MapBenchFX (FX) using the same visible window size...

Laurent
Reply all
Reply to author
Forward
0 new messages