Skip to content

perf(win32): reduce caption button hit-test work - #271

Merged
wangwenx190 merged 1 commit into
stdware:mainfrom
JulienMaille:perf/win32-caption-hit-test
Dec 3, 2026
Merged

wangwenx190 merged 1 commit into
stdware:mainfrom
JulienMaille:perf/win32-caption-hit-test

Conversation

@JulienMaille

Copy link
Copy Markdown
Contributor

Check for caption buttons before querying the resize frame or checking the draggable title bar. Query the window state only when the pointer is in the narrow resize band around a button.

In the earlier Windows Widgets probe, median hit-test time over Maximize and Close dropped from about 2.5 µs to 1.7 µs. Hit-test results matched across 960 points. Windows probe

@wangwenx190
wangwenx190 self-requested a review December 2, 2026 07:15
@wangwenx190 wangwenx190 self-assigned this Dec 2, 2026
@wangwenx190 wangwenx190 added the enhancement New feature or request label Dec 2, 2026
@wangwenx190

Copy link
Copy Markdown
Collaborator

Code looks good but please rebase on top of latest main branch

@JulienMaille
JulienMaille force-pushed the perf/win32-caption-hit-test branch from aa441f9 to 5c42614 Compare December 2, 2026 13:41
@JulienMaille

Copy link
Copy Markdown
Contributor Author

done

@wangwenx190 wangwenx190 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks! LGTM

@wangwenx190
wangwenx190 merged commit 28d474f into stdware:main Dec 3, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants