Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (798)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (865)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Current takes on JavaFX issues  (Read 696 times)
0 Members and 1 Guest are viewing this topic.
Offline philfrei
« Posted 2019-09-24 22:34:41 »

Back almost exactly two years ago (Sep 2017) we had a discussion about problems with JavaFX. I'm linking @princec's reply which is followed immediately by @Riven and others.

With JavaFX split off, there was some hope that at least some of these issues could be addressed. JavaFX 13 has been released. What progress has been made? Here is a link to the JavaFX 13 Release Notes.

For example, JDK-8167148 Add native rendering support by supporting WritableImages backed by NIO ByteBuffers
How much does this improve rendering?

This still-open matter is more pertinent?
 JDK-8091324 Allow FX to interoperate with 3rd party (native) OpenGL visualizations

The initial post is very old, but there is recent activity originating from work by @gouessej pertaining to NEWT. Bug 607 - JavaFX 2+ and JOGL should work together, comments 27, 28.
Also Bug 1364 - Add JavaFX Support for NEWT utilizing native Window parenting via NewtCanvasJFX

My knowledge of behind-the-scene's graphics processing is limited. I'll benefit from any background or explanatory info included in replies, where it isn't too much trouble.

music and music apps: http://adonax.com
Offline Spasi
« Reply #1 - Posted 2019-09-24 23:38:31 »


Here's an example. Looks impressive, people make it sound impressive, except there's this little detail of 30% CPU usage. I.e. it's crap and not a solution for real-time rendering or video playback. I recently ported LWJGL-FX to lwjgl3/glfw and JavaFX 13 to give it a try (repo will be updated soon). I found it's actually worse than the PixelWriter API:

a) There's no way to synchronize with JavaFX in order to render concurrently with double/triple-buffering.
b) The "native" rendering API does not support a row stride in the pixel data (PixelWriter did), which means reduced readback performance.

The solution to both problems is, ironically, copying the pixel data.

I also recently added driftfx bindings to lwjgl3. It's looking promising, follow this issue for more. It's a noble approach if you don't want to mess with JavaFX internals too much and it will probably become a viable solution when it matures (needs more work atm). But I also think that a JavaFX fork with a LWJGL3FX-style backend would be the best approach. Another interesting approach is writing a bgfx implementation, which would get us automatic support for OpenGL/D3D9/D3D12/Vulkan/Metal (i.e. stable top performance on every platform).
Pages: [1]
  ignore  |  Print  
 
 

 
Riven (82 views)
2019-09-04 15:33:17

hadezbladez (4338 views)
2018-11-16 13:46:03

hadezbladez (1547 views)
2018-11-16 13:41:33

hadezbladez (4462 views)
2018-11-16 13:35:35

hadezbladez (872 views)
2018-11-16 13:32:03

EgonOlsen (4152 views)
2018-06-10 19:43:48

EgonOlsen (4855 views)
2018-06-10 19:43:44

EgonOlsen (2804 views)
2018-06-10 19:43:20

DesertCoockie (3709 views)
2018-05-13 18:23:11

nelsongames (4000 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!