Multi core server?

Started by Cybermind, 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?


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