Page 1 of 1

show path lag Solution, in transform layer tool

Posted: Thu Mar 24, 2016 3:16 pm
by JeroenKoffeman
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:

Code: Select all

function LM_TransformLayer:DrawMe(moho, view)
	if (moho.layer == nil or moho:IsPlaying())
replace it by:

Code: Select all

function LM_TransformLayer:DrawMe(moho, view)
	if (moho.layer == nil or moho:IsPlaying() or self.dragging) then
This way, the drawpath function is temporarily disabled during a mousedrag, so there is no lag.

Re: show path lag Solution, in transform layer tool

Posted: Thu Mar 24, 2016 4:53 pm
by synthsin75
Except that disables being able to see the path when directly manipulating it via ctrl-drag and doesn't draw the the frame points on the path.

Re: show path lag Solution, in transform layer tool

Posted: Thu Mar 24, 2016 5:00 pm
by JeroenKoffeman
ctrl drag still works, and the points are being updated after the mouse is released. True, you are not able to see the path while dragging, but for the increase in speed, it's worth it.

Re: show path lag Solution, in transform layer tool

Posted: Thu Mar 24, 2016 8:56 pm
by synthsin75
You could add 'not mouseEvent.ctrlKey' to your conditional.