The old way (using a scene_update_pre handler) turned out to work due to a bug in Blender, where scene_update_pre was called too frequently.
The old way (using a scene_update_pre handler) turned out to work due to a bug in Blender, where scene_update_pre was called too frequently.