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

Draw the first frame before window is visible #182

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Feb 8, 2022

Fixes JetBrains/compose-multiplatform#1794

[RelNote] The first frame of the window draws before window is visible to avoid flickering

If the first frame is too long to draw (> 500ms), you should make their apps asynchronous and draw UI gradually in multiple frames without blocking the UI thread for too long in a single frame. Alternative to that is to use ComposeWindow directly (see the tutorial). ComposeWindow behave the same way as Swing behaves (draws the first frame only after the window is visible).

Fixes JetBrains/compose-multiplatform#1794

If the first frame is too long to draw (> 500ms), users should make their apps asynchronous and draw UI gradully in multiple frames without blocking the UI thread for too long in single frame
@igordmn igordmn requested a review from olonho February 8, 2022 13:10
@igordmn igordmn merged commit 66c3fc0 into release/1.1 Feb 8, 2022
@igordmn igordmn deleted the feature/drawFirstFrameBeforeShow branch February 8, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants