Skip to main content

windowed

Function windowed 

Source
pub fn windowed(mcp: bool, stepped: bool, event_loop: EventLoop<()>)
Expand description

Run the whole show: five worlds, one window.

The host world owns the window and the render sub-world, which serves the scene’s assets; the physics, audio and gameplay worlds are remote. The scene’s objects build it by requesting from the render server, jobs go out, snapshots come back, and nothing but data crosses a thread boundary. With the mcp flag, a Model Context Protocol server over stdio reads the host and its render world. A stepped run drives the worlds from the frame loop instead of threads of their own: that is what a browser build always does, and what a desktop run asks for to exercise the same path.