In 3dsMax that uses Nitrous viewport there is no flickering. In 3dsMax 2009 the flickering is constant. The problem is in 3dsMax. You can't overcome it. About the code: thiso.mesh.numfaces creates copy(in the memory) of the object each time when it is executed. In the same loop it is used twice. The same is valid for every…
Not just saving it to a variable, deleting it afterwards, too. Launch task manager to see the RAM usage of 3dsmax process and see it rising with ( local t = Teapot segments:64 for i = 1 to 1000 do t.mesh.verts.count) and now compare it to ( local t = Teapot segments:64 local m -- one variable to hold them all, outside the…