Re: Scene graph performance

2016-07-26 Thread Johan Vos
Hi, I agree with most that has been said here, but I want to add a few things. I've seen a number of "performance issues" with JavaFX in customer projects. Most of them are simply due to the application doing things on the FX App Thread that shouldn't be done there. Apart from these obvious thin

Re: Scene graph performance

2016-07-22 Thread Felix Bembrick
Sorry, take 2. Thanks - that's very helpful. I have been concentrating on profiling the Java aspects of FXMark so this gives me more things to try. I will report back with my findings. Blessings, Felix > On 22 Jul 2016, at 19:02, Vadim Pakhnushev > wrote: > >> On 22.07.2016 11:15, Felix B

Re: Scene graph performance

2016-07-22 Thread Felix Bembrick
> On 22 Jul 2016, at 19:02, Vadim Pakhnushev > wrote: > >> On 22.07.2016 11:15, Felix Bembrick wrote: >> Hi Vadim, >> >> I am very open-minded about this. Anything is possible (including, as I >> mentioned, that I wrote FXMark very poorly). >> >> Can you help by detailing what tools you use

Re: Scene graph performance

2016-07-22 Thread Vadim Pakhnushev
On 22.07.2016 11:15, Felix Bembrick wrote: Hi Vadim, I am very open-minded about this. Anything is possible (including, as I mentioned, that I wrote FXMark very poorly). Can you help by detailing what tools you use to track CPU/GPU usage? I personally use Process Hacker (I'm on Windows) and

Re: Scene graph performance

2016-07-22 Thread Felix Bembrick
Hi Vadim, I am very open-minded about this. Anything is possible (including, as I mentioned, that I wrote FXMark very poorly). Can you help by detailing what tools you use to track CPU/GPU usage? I am sure finding out the exact nature of what is happening and what is causing it will help every

Re: Scene graph performance

2016-07-22 Thread Vadim Pakhnushev
Felix, For me it's very useful to track CPU/GPU usage while running a benchmark. Could it be that your very fast machine is limited by some synchronization issues and CPU/GPU is essentially idle while slower machine is running 100% CPU? Vadim On 22.07.2016 3:35, Felix Bembrick wrote: I am w

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
I am willing to accept that perhaps FXMark is written so poorly that it does not permit JavaFX to perform as well as it could (possibly significantly so) on any particular platform. And I am indeed going through the code line-by-line and doing all manner of profiling to try to answer this question

Re: Scene graph performance

2016-07-21 Thread Scott Palmer
> On Jul 21, 2016, at 6:18 PM, Richard Bair wrote: > > Hi Steve, > > It could be a benchmark problem, although I wouldn’t be surprised at all if > the benchmark was exercising the platform in some way that was CPU limited. > Assuming it is CPU limited (and not going multi-core), I think the p

Re: Scene graph performance

2016-07-21 Thread Hervé Girod
We use a lot of Nodes which we update dynamically from another Client App. We also use JavaFX animations, but admittedly not a lot of them concurrently. In our case JavaFX animations are mainly linked to user interactions, a lot of what is dynamic in our apps is directly a result of real data c

Re: Scene graph performance

2016-07-21 Thread Richard Bair
Hi Steve, It could be a benchmark problem, although I wouldn’t be surprised at all if the benchmark was exercising the platform in some way that was CPU limited. Assuming it is CPU limited (and not going multi-core), I think the problem really comes down to what Markus said: > The limiting fac

Re: Scene graph performance

2016-07-21 Thread Richard Bair
Hi Herve, Thanks for chiming in. I agree. From my own experience and benchmarking with other app-dev GUI toolkits, JavaFX performs very well for a very wide range of use cases. That being said, performance was always a passion of mine and I know there is more to be had. I like Kevin’s idea of

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
I agree that the original question has led to a discussion of a somewhat different nature and I accept that the benchmark itself may be problematic. But others have reported similar observation using different benchmarks. > On 22 Jul 2016, at 07:42, Steve Hannah wrote: > > I've just been a fly

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
Are you using nodes, transitions, effects and animations? Or are you using the Canvas node only? > On 22 Jul 2016, at 07:33, Hervé Girod wrote: > > I really don't understand all this. We use Java FX 8 in a graphic framework > where we need high performance (prototyping Cockpit Display Systems

Re: Scene graph performance

2016-07-21 Thread Steve Hannah
I've just been a fly on the wall for this thread, but ... I think this thread has gone off track a bit. Felix's original observation was that he got the same benchmark results from two machines that should produce different results because one is more powerful than the other in both CPU and GPU).

Re: Scene graph performance

2016-07-21 Thread Hervé Girod
I really don't understand all this. We use Java FX 8 in a graphic framework where we need high performance (prototyping Cockpit Display Systems with dynamic Maps and Head Up Displays), and we find that JavaFX performance is pretty good our use case. For example, Qt / QML performance is far worse

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
Yes, well I think this the problem: 1) Going on history, it would be a best case scenario for Java 10 to be released in 2020 (but more likely 2021). 2) With JavaFX, we are already "behind the game" (pun intended). 3) JavaFX itself has evolved much slower than its competitors. 4) Technology in

Re: Scene graph performance

2016-07-21 Thread dalibor topic
net] On Behalf Of Dr. Michael Paus Sent: Donnerstag, 21. Juli 2016 12:07 To: openjfx-dev@openjdk.java.net Subject: Re: Scene graph performance Hi Felix, I have written various tests like the ones you use in FXMark and I have obtained similar results. I have even tried to substitute 2D shapes by u

Re: Scene graph performance

2016-07-21 Thread Kevin Rushforth
Paus Sent: Donnerstag, 21. Juli 2016 12:07 To: openjfx-dev@openjdk.java.net Subject: Re: Scene graph performance Hi Felix, I have written various tests like the ones you use in FXMark and I have obtained similar results. I have even tried to substitute 2D shapes by using 3D MeshViews in the hop

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
d rendering (a.k.a tiled rendering). >>>>> >>>>> I am pretty sure you can add a lot more ideas to the list and produce >>>>> great performance, scaling linearly with number of CPU cores / GPU cores, >>>>> but this somes at a cost: Risk to introduce hard to track

Re: Scene graph performance

2016-07-21 Thread Kevin Rushforth
aus Sent: Donnerstag, 21. Juli 2016 12:07 To: openjfx-dev@openjdk.java.net Subject: Re: Scene graph performance Hi Felix, I have written various tests like the ones you use in FXMark and I have obtained similar results. I have even tried to substitute 2D shapes by using 3D MeshViews in the ho

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
has at least a lot of free spare time, I am pretty sure Kevin >>> could easily provide a huge set of work items in this area. :-) >>> >>> -Markus >>> >>> -Original Message- >>> From: openjfx-dev [mailto:openjfx-dev-boun...@openjdk.jav

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
Hi Richard, Wow! Thanks - you really know your stuff! Yes, it's not a "one LOC change" and I get that it has a lot to do with the difficult marriage of 2D and 3D worlds. And it does seem like a large project in itself to solve these problems but, I really believe it *has* to be done and I inte

Re: Scene graph performance

2016-07-21 Thread Kevin Rushforth
r. Michael Paus Sent: Donnerstag, 21. Juli 2016 12:07 To: openjfx-dev@openjdk.java.net Subject: Re: Scene graph performance Hi Felix, I have written various tests like the ones you use in FXMark and I have obtained similar results. I have even tried to substitute 2D shapes by using 3D MeshViews i

Re: Scene graph performance

2016-07-21 Thread Richard Bair
- > From: openjfx-dev [mailto:openjfx-dev-boun...@openjdk.java.net] On Behalf Of > Dr. Michael Paus > Sent: Donnerstag, 21. Juli 2016 12:07 > To: openjfx-dev@openjdk.java.net > Subject: Re: Scene graph performance > > Hi Felix, > I have written various tests like the

RE: Scene graph performance

2016-07-21 Thread Markus KARG
uge set of work items in this area. :-) -Markus -Original Message- From: openjfx-dev [mailto:openjfx-dev-boun...@openjdk.java.net] On Behalf Of Dr. Michael Paus Sent: Donnerstag, 21. Juli 2016 12:07 To: openjfx-dev@openjdk.java.net Subject: Re: Scene graph performance Hi Felix, I have

Re: Scene graph performance

2016-07-21 Thread Richard Bair
Have you guys profiled the application to see where the CPU time is spent? How many nodes in the app? In the past the majority of CPU time has been spent in one or more of the following (not sure if it still applies): - Computing changed bounds (a lot of work was done to speed this up, but I

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
I would add that neither JOGL nor LWJGL have these issues. Yes, I know they are somewhat different "animals", but the point is, clearly *Java* is NOT the cause. > On 21 Jul 2016, at 20:07, Dr. Michael Paus wrote: > > Hi Felix, > I have written various tests like the ones you use in FXMark and

Re: Scene graph performance

2016-07-21 Thread Felix Bembrick
Hi Michael, Thanks for your response. This is what I suspected: what is ostensibly a hardware accelerated toolkit seems to barely utilise the GPU for scene graph animations. But, even with that, my machine has dual high performance 16-core Xeons while my wife's machine has a single 2-core i5 a

Re: Scene graph performance

2016-07-21 Thread Dr. Michael Paus
Hi Felix, I have written various tests like the ones you use in FXMark and I have obtained similar results. I have even tried to substitute 2D shapes by using 3D MeshViews in the hope that this would give better performance but the results were not that good. Of course all this depends on the spec