We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am running processing form java.
I've found that FX2D is the only renderer that currently does what I need in 2D space and is also performant enough.
One of the conditions in JavaFX is that Application.launch
can only be called once in the same JVM.
So if I am starting and monitoring an instance of Processing in the same VM I can't close it and restart a new instance without restarting the whole VM.
There are quite a few threads on the subject, this direction seems promising for my use case. But unfortunately I don't know enough about Processing internals to know if this is already implemented or is possible for me to adjust outside of the source.
In the same vein, launching a Processing application as a new thread and monitoring it is working fine. Unfortunately if I properly exit out of FX2D it wants to shut down the whole JVM, not just the thread it is in. Is there a way around that, while still cleaning up the resources used by Processing?
tl;dr
Thanks