Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Optimising for headless mode
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Optimising for headless mode (Read 3453 times)
zammbi
float
Posts: 361
Optimising for headless mode
«
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.
Logged
EgonOlsen
Administrator
quad
Posts: 12275
Re: Optimising for headless mode
«
Reply #1 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.
Logged
zammbi
float
Posts: 361
Re: Optimising for headless mode
«
Reply #2 on:
July 29, 2010, 06:12:01 pm »
I mean if there is any setting in Config that would help?
Logged
EgonOlsen
Administrator
quad
Posts: 12275
Re: Optimising for headless mode
«
Reply #3 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>).
Logged
zammbi
float
Posts: 361
Re: Optimising for headless mode
«
Reply #4 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.
Logged
EgonOlsen
Administrator
quad
Posts: 12275
Re: Optimising for headless mode
«
Reply #5 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.
Logged
zammbi
float
Posts: 361
Re: Optimising for headless mode
«
Reply #6 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...
Logged
EgonOlsen
Administrator
quad
Posts: 12275
Re: Optimising for headless mode
«
Reply #7 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...
Logged
zammbi
float
Posts: 361
Re: Optimising for headless mode
«
Reply #8 on:
July 30, 2010, 02:02:48 pm »
Soon find out...
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Optimising for headless mode