I'm writing an addon, which let the user the option to see the dynamics of its data. The user can create an offline movie, or try to run it online. In this addon, there is quite a complex mesh, with thousands of vertices. In a modal timer operator, something like this one, I'm painting different vertices each timer tick:
vcol_layer = mesh.vertex_colors.new()
And inside a loop:
vcol_layer.data[loop_ind].color = some_color
The problem is that it takes about a second to render the image in the 3D view, and until the rendering is completed, the image is quite blurry, like in the following screenshot: Is there a way to change this behavior, so the rendering will be be done in the background, and the image will be updated only when it's completed?