inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
11 stars 1 forks source link

Make Inexor capable to run multiple instances #362

Closed aschaeffer closed 7 years ago

aschaeffer commented 7 years ago

Motivation

Making Inexor able to run multiple instances would mean we can start and stop servers and clients at runtime.

Requirements

Architecture

In order to achieve multi instance capabilities, we have to redesign the architecture:

Inexor Tree

User Interface (HUD / Application) for Inexor Core (Client) instances

Inexor Flex Business Logic

Future

a-teammate commented 7 years ago

+1 Very good summary

Just the splitscreen support should be done on one Client instance (for performance)

Fohlen commented 7 years ago

Restricting the flex server to a single instance could be done using https://nodejs.org/api/process.html#process_process_pid .. then adding a command which looks up the pid and adding an appropriate script to the package.json would be the way to go with npm start && npm stop, although shutdown via port is probably more desirable.

aschaeffer commented 7 years ago

Done in flex/master.