"server Build" Vs Batchmode/nographics

Previously I would use -batchmode -nographics for running a server instance. With the new Server Build option is there any reason to still use those flags (for a server), or are they redundant?

They seem redundant. but the server build is not some magical switch.
You still can get a lot of performance out of your server by stripping it of all models, textures, sound, particles and so on in runtime, for some reason unity still loads all of those…

Yes I maintain a separate project for this purpose to keep the size of the server build very small and ensure no art assets are loaded.

I too build with a separate server project. I run the servers with -batchmode -nographics so they run as services. If I tick the “server” checkbox on the build window, the resultant exe doesn’t work as a service.

1 Like

Are you talking Windows Services here?

Service as in runs in the background without a window or blocking console/dos window

./myServerExecutable &

I don’t understand what you mean exactly by service, and why doesn’t it work as a service when the box is ticked?

A windows service is a background task. Not sure what the issue was with the server checkbox - think it still brought up a window. Not sure as not in the office right now :slight_smile:

Right I was just asking what you ment by “service”, I don’t use Windows that much so I didn’t know if you meant a systemd service, Windows service or the XNU equivalent.