Skip to content

425 requestlayout#426

Merged
johanvos merged 8 commits intogluonhq:mainfrom
johanvos:425-requestlayout
Dec 15, 2025
Merged

425 requestlayout#426
johanvos merged 8 commits intogluonhq:mainfrom
johanvos:425-requestlayout

Conversation

@johanvos
Copy link
Copy Markdown
Contributor

@johanvos johanvos commented Dec 13, 2025

This PR builds on top of #424

@johanvos
Copy link
Copy Markdown
Contributor Author

This fixes #425

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the layout update mechanism in ParagraphTile by replacing direct layout() calls with requestLayout() calls. This is a best practice change that allows JavaFX to schedule layout updates efficiently rather than forcing immediate layout calculations.

  • Replaces contentPane.layout() with contentPane.requestLayout() in two locations within the setParagraph method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@johanvos
Copy link
Copy Markdown
Contributor Author

performance
before: FPS: 34 avg processing time: 20ms
after: FPS: 35 avg processing time: 16ms

@johanvos johanvos merged commit d0939c8 into gluonhq:main Dec 15, 2025
9 checks passed
@johanvos johanvos deleted the 425-requestlayout branch December 15, 2025 10:25
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

Successfully merging this pull request may close these issues.

2 participants