Zen Sets with Snap Measure add-on degrades performance in edit mode

bewilder

I’m not 100% sure this is a Zen Sets problem but there are errors in the system console from Zen Sets, so I’m reporting it here.

I have the Snap Measure add-on and when a measurement is set/active in the scene there’s significant lag but only in edit mode. See the video and take note of the FPS counter. Many actions will output the error to the console (and cause lag), including entering edit mode selecting a face, vertex, edge, scaling, rotating etc. While scaling the face in video the console was spammed with the error. When I disable Zen Sets the performance returns to normal.

Snap Measure
https://superhivemarket.com/products/snap-measure


Imported from Discord

AlexZhornyak

Hi, it seems to be a problem in depsgraph_update handling in that addon. Because I see a recursion, it means that this addon changes every time something in Scene while application generate a modification scene callback. I am sure that if you disable Snap Measure addon, performance will also return to normal.
Unfortunately I do not have this addon to make a code review

Regarding to the warning in console, this old Blender issue, which does not affect on the performance of working logic

https://projects.blender.org/blender/blender/issues/150898

https://projects.blender.org/blender/blender/issues/82250
Imported from Discord

bewilder

Thanks, I will report the problem to the Snap Measure developer.
Imported from Discord