Page MenuHome

Sculpt: Delay Viewport Updates
Needs ReviewPublic

Authored by Pablo Dobarro (pablodp606) on Mon, Nov 18, 1:40 AM.
Subscribers
None
Tokens
"Like" token, awarded by EAW."Love" token, awarded by monio."Like" token, awarded by Frozen_Death_Knight."Like" token, awarded by franMarz."Like" token, awarded by Alrob."Mountain of Wealth" token, awarded by Brandon777.

Details

Summary

In Blender 2.81 we update and draw all nodes inside the view planes.
When navigating with a pen tablet after an operation that tags the whole
mesh to update (like undo or inverting the mask), this introduces some
lag as nodes are updating when they enter the view. The viewport is not
fully responsive again until all nodes have entered the view after the
operation.

This patch delays nodes updates until the view navigation stops, so the
viewport navigation is always fully responsive. This introduces some
artifacts while navigating, so it can be disabled if you don't want to
see them.

I'm storing the update planes in the PBVH. This way I can add support
for some tools to update in real-time only the nodes inside this plane
while running the operator, like the mesh filter.

Should fix viewport navigation issues mentioned in T71564

Diff Detail

Repository
rB Blender
Branch
sculpt-delay-updates (branched from master)
Build Status
Buildable 5713
Build 5713: arc lint + arc unit