#Running multiple bevy apps in one process

3 messages · Page 1 of 1 (latest)

finite bay
#

Hi! For testing multiplayer games I usually have lots of entrypoint stuff to spawn new processes and wrap those processes with some stuff to allow the logs to show up nicely and stuff.
However I would ideally have them all running in a single binary so I don't have to something as fragile as spawning another instance of the binary in argument 0.
Is there a way to do this? I've started two apps, but there's a lot of conflicting global initialization that breaks it, like logging, and two winit event loops, so I'm guessing this may not be possible?

charred torrent
#

Not really a viable approach for multiple windowed Apps

#

You can totally do it with a headless App, though - just ensure LogPlugin is only setup once