Optimising for headless mode

Started by zammbi, July 29, 2010, 06:18:10 AM

Previous topic - Next topic

zammbi

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.

EgonOlsen

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.

zammbi

I mean if there is any setting in Config that would help?

EgonOlsen

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>).

zammbi

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.

EgonOlsen

Collision detection alone won't benefit from multiple cores, so you can leave that setting to false.

zammbi

Ah right. Is it possible in a future update to run on multiple cores? Could help server apps...

EgonOlsen

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... ???

zammbi