Author Topic: Optimising for headless mode  (Read 3795 times)

Offline zammbi

  • float
  • ****
  • Posts: 361
    • View Profile
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
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.

Offline zammbi

  • float
  • ****
  • Posts: 361
    • View Profile
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
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>).

Offline zammbi

  • float
  • ****
  • Posts: 361
    • View Profile
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
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.

Offline zammbi

  • float
  • ****
  • Posts: 361
    • View Profile
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...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
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... ???

Offline zammbi

  • float
  • ****
  • Posts: 361
    • View Profile
Re: Optimising for headless mode
« Reply #8 on: July 30, 2010, 02:02:48 pm »
Soon find out...