Adam's Lair Forum
https://forum.adamslair.net:80/

Headless operation for a game server
https://forum.adamslair.net:80/viewtopic.php?f=4&t=1220
Page 1 of 1

Author:  zanco [ 2018/01/02, 08:19 ]
Post subject:  Headless operation for a game server

Hey All,

I've got the client/server network stuff figured out for an MMO-like Dualiyt setup but I'd like to be able to run the Duality core headless on a server to handle my authoritive raycasts, timing, etc. Does anyone have any idea how to do this or should I just use a blank window and have 2 copies of Dualitor open?

It would be nice to run the environment purely as a console application, possible?

Author:  Adam [ 2018/01/02, 13:40 ]
Post subject:  Re: Headless operation for a game server

One way to go about this would be writing a custom launcher application that opens a window, but never calls `Run` on it, leaving it hidden and allowing to implement a custom main loop, which can omit all rendering and audio.

Another option would be to run the launcher without a graphics or audio backend, either by skipping the OpenTK ones via config, or by removing their dlls from the plugins folder. Keep the default system backend though. This would mean that there's a game running that thinks it is rendering as usual, but actually ends up pouring its rendering data into the void.

I think the first option sounds a lot better so far, but maybe it helps to know that the second one exists. They're not mutually exclusive either.

Author:  zanco [ 2018/01/02, 20:11 ]
Post subject:  Re: Headless operation for a game server

Adam,

Thanks for the reply on this! Option 1 sounds better as I'm considering some options like scaling or tiling servers with load so having more control over the instantiation sounds better.

I'll put together some docs on this if I can make this work.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/