use ex.Engine without canvas (disable all drawing processes) #3033
-
What is the recommended way to disable ex.Engine's drawing processes and canvas? (just using Excalibur for physics, movement, etc.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@plemnoooooo Good question! A more official feature is planned to support a headless mode, but unfortunately it's a fair amount of work to untangle the drawing/browser dependencies from the core loop. A few folks have had luck providing a shim for the draw to effectively disable it #2759 (reply in thread) Other folks have taken the approach re-implementing physics/movement on the server for the purposes of multiplayer, they also wind up running at a slower tick rate as well. |
Beta Was this translation helpful? Give feedback.
@plemnoooooo Good question! A more official feature is planned to support a headless mode, but unfortunately it's a fair amount of work to untangle the drawing/browser dependencies from the core loop.
A few folks have had luck providing a shim for the draw to effectively disable it #2759 (reply in thread)
Other folks have taken the approach re-implementing physics/movement on the server for the purposes of multiplayer, they also wind up running at a slower tick rate as well.