show path lag Solution, in transform layer tool
Posted: Thu Mar 24, 2016 3:16 pm
I find the showpath function of the transform layer tool super handy, however it produces significant lag when this flag is turned on.
There's a simple solution:
In lm_transform_layer.lua, change the following code:
replace it by:
This way, the drawpath function is temporarily disabled during a mousedrag, so there is no lag.
There's a simple solution:
In lm_transform_layer.lua, change the following code:
Code: Select all
function LM_TransformLayer:DrawMe(moho, view)
if (moho.layer == nil or moho:IsPlaying())
Code: Select all
function LM_TransformLayer:DrawMe(moho, view)
if (moho.layer == nil or moho:IsPlaying() or self.dragging) then