Author Topic: Multi core server?  (Read 3192 times)

Cybermind

  • Newbie
  • *
  • Posts: 25
    • View Profile
Multi core server?
« on: August 07, 2016, 07:33:34 am »
I am running a VoidExpanse Mono Server on a Raspberry Pi 2 with Raspbian without GUI. I will upgrade to a Raspberry Pi 3 to see if the extra MHz will make it playable with more players. It runs fine with one player but I reckon that it will be troublesome with more players in different star systems. Would it be super hard to add multicore support for the server? So that each core can handle different starsystems?

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 2017
    • View Profile
Re: Multi core server?
« Reply #1 on: August 07, 2016, 10:42:33 pm »
Hello!
Unfortunately, this is a very hard task as the server implementation is not thread-safe and we cannot do parallel processing of multiple star systems: there are many common subsystems which will be simultaneously utilized by each parallel task and we need to put synchronization/locking code to avoid any race conditions and other multi-threading related issues. Without proper implementation it is not only very hard, but also could degrade the performance. And proper implementation is possible only when supported by server architecture from day zero...

Regards!