What would be the best options to setup JPCT for headless mode to be the most optimised? Going to be running JPCT on a server.
What exactly do you mean by "optimize"?...just enable headless mode and see if it works. And remember to use the server vm on the server.
I mean if there is any setting in Config that would help?
Actually no...what is good for the client should be good for the server. I assume you are using the software renderer? In that case, make sure to use multi threading (Config.useMultipleThreads=true and Config.maxNumberOfCores=<number of cores/cpus of your server>).
Oh ok,just making sure. I'm only using it for collisions, hardware mode wouldn't help there correct?
I'm playing around with red dwarf aka project darkside again. Not sure if multi core setting will break anything or not. But ill give it a try.
Collision detection alone won't benefit from multiple cores, so you can leave that setting to false.
Ah right. Is it possible in a future update to run on multiple cores? Could help server apps...
It will run on multiple threads anyway as the server will use different threads to process parallel servlet request. Let's just hope that jPCT is thread safe enough to handle parallel collision detections in one world... ???
Soon find out...