Conversation
poweifeng
force-pushed
the
pf/filamentapp2-headless
branch
3 times, most recently
from
September 18, 2026 07:07
7de7e62 to
479a60a
Compare
- Add HeadlessDisplayManager: offscreen windows, scripted input, and a synthetic clock for deterministic testing. - Replace the headless flag in Config, FilamentApp2::Builder and createWindow() with DisplayManager::isHeadless(). - Add DisplayManager::runFrameLoop() so the frame loop, and with it frame pacing, belongs to the display manager. The default is a blocking loop paced to roughly 60Hz; headless runs unpaced. A manager whose frames are delivered by an external source can instead register itself and return. - FilamentApp2::run() delegates to it and no longer calls shutdown(): doFrame() already does so before reporting completion, and runFrameLoop() may return while the app is still running. - FilamentApp::run() honors the deprecated Config::headless and falls back to headless when the requested manager is unavailable. - Remove Android headless support; AndroidDisplayManager always returns its SurfaceView. - Remove unreachable display manager null checks in FilamentApp2. - SDLDisplayManager is now never headless
poweifeng
force-pushed
the
pf/filamentapp2-headless
branch
from
September 18, 2026 07:18
479a60a to
49f71ef
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
synthetic clock for deterministic testing.
createWindow() with DisplayManager::isHeadless().
frame pacing, belongs to the display manager. The default is a
blocking loop paced to roughly 60Hz; headless runs unpaced. A manager
whose frames are delivered by an external source can instead register
itself and return.
doFrame() already does so before reporting completion, and
runFrameLoop() may return while the app is still running.
back to headless when the requested manager is unavailable.
its SurfaceView.