www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: zammbi on July 29, 2010, 06:18:10 am

Title: Optimising for headless mode
Post by: zammbi on July 29, 2010, 06:18:10 am
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.
Title: Re: Optimising for headless mode
Post by: EgonOlsen on July 29, 2010, 05:14:28 pm
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.
Title: Re: Optimising for headless mode
Post by: zammbi on July 29, 2010, 06:12:01 pm
I mean if there is any setting in Config that would help?
Title: Re: Optimising for headless mode
Post by: EgonOlsen on July 29, 2010, 09:13:58 pm
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>).
Title: Re: Optimising for headless mode
Post by: zammbi on July 30, 2010, 06:48:11 am
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.
Title: Re: Optimising for headless mode
Post by: EgonOlsen on July 30, 2010, 11:59:00 am
Collision detection alone won't benefit from multiple cores, so you can leave that setting to false.
Title: Re: Optimising for headless mode
Post by: zammbi on July 30, 2010, 01:12:10 pm
Ah right. Is it possible in a future update to run on multiple cores? Could help server apps...
Title: Re: Optimising for headless mode
Post by: EgonOlsen on July 30, 2010, 01:53:02 pm
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... ???
Title: Re: Optimising for headless mode
Post by: zammbi on July 30, 2010, 02:02:48 pm
Soon find out...