I am having a Script that runs through all the Vertices of a Mesh and applies Vertex Colors. The Script must be executed frequently (all few Ticks, about 10 or 30) but at every Update (Script Execution) there is a short Lag – as expected.
So, the Problem is that running through all the Vertices and applying the Vertex Colors within one Tick is too much for the Engine and that is why the Frames are skipped.
Now, would there be a Way to execute a Script in with »low Priority« so that it would »work slow« and thus not affect the Framerate? (like: »Darnage, the Job can’t be done in this one Tick, well, then I will finish it in the next few Ticks, just let’s keep it subtle…«)
(Now that I think about it, that would surely be a great Thing for many Cases.)