Open janfokke opened 4 years ago
I don't think this is worth it for us to maintain in the main repo.
For servers you really don't want to use graphics classes at all. IMO the best thing we can do for headless MG game servers is provide a separate assembly with math types. See #6850.
For unit testing, I think no-op implementations of graphics classes are of very limited value because you can't test the most important parts.
I don't want to test Graphics and I don't want to render on a server.
The Game class and packages like MonoGame.Extended Tiled, require a window/graphics and therefore I am currently running my server in a custom update loop and using a ContentManager with a hack.
@janfokke could you explain how you are running a custom update loop?
@xdrie I don't use the Game class, because that initializes SDL stuff. I copied the MonoGame update loop code and use the code above to fix ContentManager Texture2D loading.
Currently, there are no runtimes that don't require a graphics card.
Adding a headless runtime would enable:
Currently, I use the following hack to run MonoGame headless, but I rather use a build-in runtime