diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-04-30 16:21:14 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-06-04 14:08:21 +0000 |
commit | 7b282e9f69df4ae4c7ed1ceba70999be0fec522d (patch) | |
tree | 93097f882b664e6163559e57068c3c5ab6fd36f1 /src/quickcontrols/designer/ControlSpecifics.qml | |
parent | 120a52ec7537b52244750bc7dd40b5412aeb6c70 (diff) |
Animators will normally do their updates exclusively on the render
thread, ensuring animations continue even if the main thread is
stalled. This is fine for normal operations, but during window
resizing we need to give the main thread a chance to present
drawables via displayLayer (which we plumb to exposeEvent),
so that the window size is continuously updated. If the render
thread is left to update and present as fast as it can, it will
starve the main thread from drawables, making resizing choppy.
We now detect if the window is being resized, and if so direct
the update to the main thread via requestUpdate, which gives
the QPA layer a chance to prioritize the resize updates over
the animations.
Pick-to: 6.8
Change-Id: Ice1e863a452d9eb4de72bae82db8dc91371ef329
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quickcontrols/designer/ControlSpecifics.qml')
0 files changed, 0 insertions, 0 deletions