Prioritize non-viewports in region drawing #109338

Open
Joseph Eagar wants to merge 2 commits from JosephEagar/blender:temp-window-ui-draw-priority into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

2 Commits

Author SHA1 Message Date
Joseph Eagar fd8da9e450 Merge branch 'main' into temp-window-ui-draw-priority 2023-06-25 01:01:19 -07:00
Joseph Eagar cd37329794 Core: Prioritize non-viewports in region drawing
This PR prioritizes non-viewport regions.
`wm_draw_window_offscreen` now iterates over
regions in two passes; first it checks for non-viewports
and draws them.  If it finds any it will defer viewport
region draws to the next call to `wm_draw_update`.

This greatly improves UI responsiveness when working
with EEVEE, with the exception of any UI element that
causes the shadow buffers to be regenerated, that
still causes a lag.

This is kind of a hack, it is submitted to encourage
discussion.
2023-06-25 01:00:51 -07:00