Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support headless subprocesses #57

Open
joaodasilva opened this issue Jan 16, 2022 · 0 comments
Open

Support headless subprocesses #57

joaodasilva opened this issue Jan 16, 2022 · 0 comments

Comments

@joaodasilva
Copy link
Contributor

Every subprocess created with Process.spawn() also gets its own window.

It can set window.visible = false to prevent it from showing up.

But ideally, it should be possible to pass --headless to make the subprocess never create its native window and just run code. In those cases, window and window.canvas wouldn't exist in the global object.

Most of the work to support that involves adapting the main loop to "wait for events" without using GLFW; the main event source would be libuv instead (e.g. wake-up whenever more bytes are received from the parent process or from a subprocess).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant