Anton V. Tarasov
anton.tarasov at oracle.com
Fri Aug 2 00:55:36 PDT 2013
I've made the following experiment. I've created two simple test cases: one is pure fx stage showing
WebView which animated some guimark2 benchmarks, another one is the same WebView wrapped with
JFXPanel put in JFrame.
I ran each test case with a single, two or four toplevels (Stages or JFrames, appropriately) and
measured performance difference. I noticed that for the swing test case, adding more toplevels
decreased performance with the same proportion like the fx test case did (despite the fact that fx
performed relatively faster, of course). For instance, for the Vector Charting Test the ratio was
directly proportional to the number of toplevels, that is doubling the toplevels decreased
performance by two times equally for both fx and swing cases.
This more or less proves the fact that adding another embedded scene into your app doesn't bring
anything except another scene.
On 01.08.2013 2:45, Pedro Duque Vieira wrote:
> I have a doubt. I have a swing app with embed javafx scene. My app has kind
> of a MDI style interface. Right now only one window has been converted to
> JavaFX, basically it's a window with a JFXPanel in it.
> My question is if I want to convert the other windows as well should I also
> put a JFXPanel in them? I would than have 2 JFXPanels in my app, does that
> mean I would have 2 JavaFX scenes? Is that the way to do it? Would that
> seriously hurt performance?
> Thank you in advance, best regards,
More information about the openjfx-dev