experiencing lag, manipulating layer

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
viccho
Posts: 38
Joined: Wed Jun 29, 2022 7:49 am

experiencing lag, manipulating layer

Post by viccho »

Hi
i'm back on my project and still have lag of 2 secondes, each time i clic on a different layer when animating. For example, i'm animating a bone of my char so i've the char-layer select but when i clic for example on mouth layer to animated it, i've to wait 2 secondes. And so on....I've read some post about negative keyframe but it returns that no keyframe. i've try disable some display option, but still the same. disable or enable gpu, same....
LAG on moving keyframe on the timeline too.

I use my char alone, on a empty BG, no bitmap (expect the hands)
I've no lag when i move the char bones, it react fast, no lag when swap a switch layer
A little lag on the first frames of preview,

CONFIG :
intel i7 3820 3.6Ghz
motherboard p9x79 pro
ram 32Go
Geforce gtx 660 ti

here is my char https://drive.google.com/file/d/1Ktikns ... share_link
Could you tell me if you are experiencing lag ?

Thank you for your help.
have a nice day
User avatar
MrMiracle77
Posts: 189
Joined: Mon Jun 24, 2019 2:30 am

Re: experiencing lag, manipulating layer

Post by MrMiracle77 »

I don't think it's your hardware. I've run 13.5 on a 2-core AMD Kaveri processor from 2014 with only 16GB of memory. And while I did have a few overnight renders, I never had 2-second lag on every frame.

What kind of storage are you using for assets? If your other background assets are on a sector of your HD or SSD that is starting to develop read/write errors, it could induce some pretty bad lag. Try the defragmenter/HD manager (if you're on windows) and have it check for file errors. It can take a while on a spinning HD.
- Dave

(As Your GM)
Daxel
Posts: 1084
Joined: Wed Mar 27, 2019 8:34 pm

Re: experiencing lag, manipulating layer

Post by Daxel »

viccho wrote: Thu Jan 26, 2023 3:16 pm

here is my char https://drive.google.com/file/d/1Ktikns ... share_link
Can't access the file. My guess would be corrupted reference layer/s.
viccho
Posts: 38
Joined: Wed Jun 29, 2022 7:49 am

Re: experiencing lag, manipulating layer

Post by viccho »

i'm all on SSD, windows and work
And here is the link of the file with access : https://drive.google.com/file/d/1Ktikns ... sp=sharing
thank you
User avatar
Greenlaw
Posts: 10405
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: experiencing lag, manipulating layer

Post by Greenlaw »

Normally, Moho interacts instantly for me but anytime I see or hear about a sudden performance lag, I suspect an unintended negative keyframe error. This is a keyframe or multiple keyframes that can appear thousands of frames before zero. This error apparently causes Moho to evaluate a ton frames unnecessarily, creating a noticeable hit to performance and possible crashing.

Fortunately, this mysterious error occurs very rarely these days (personally, I haven't seen it for a few years) and if you use Synthsin75's Find and Delete Negative Keyframes script it's very easy to fix. Go here for more info...

Find and Delete Negative Keyframes

Hope that's all it is. Good luck!
User avatar
synthsin75
Posts: 10267
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: experiencing lag, manipulating layer

Post by synthsin75 »

No negative keyframes found, but if you turn off timeline visibility for the few layers that are checked, it improves performance.
User avatar
hayasidist
Posts: 3841
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: experiencing lag, manipulating layer

Post by hayasidist »

viccho wrote: Thu Jan 26, 2023 3:16 pm i'm back on my project and still have lag of 2 secondes...
There seems to be something VERY wrong in that file... if I open it, then immediately try to re-load Moho (ctrl-shift-alt-L), moho crashes (no problems with other moho files). I don't have the pngs - but I doubt that's the problem. Can you try that (i.e. reload moho) in a version with the pngs? and without???

If it crashes for you, then it's definitely something wrong in the file and that will at least set a direction to go looking for the problem...
Daxel
Posts: 1084
Joined: Wed Mar 27, 2019 8:34 pm

Re: experiencing lag, manipulating layer

Post by Daxel »

I see you don't have any reference layers.

I did what you say, selecting other layers while animating, and my experience is like this:

If I do it clicking on the layers panel, it takes one second to highlight the selected layer on the layers panel, and I don't see the vector points of the seleced layer until the layer is highlighted on the panel.

If I select the layer using the shortcut alt+rightclick (I use this always, if possible) then I can see the vector points of the selected layer inmediately, even if the layer gets highlighted half a second later on the layers panel (yes, the layer is selected noticeably faster with this shortcut). If you try to manipulate a vector very fast (before the layer is highlighted) you can, but the moved vector will take an instant to update its position (right when the layer is highlighted on the layers panel).

In both cases, the performance selecting layers improves very noticeably using Wes tip of disabling timeline visibility for the layers.
The fact that the layers are selected faster using the alt+rightclick shortcut, makes me think that there is room for improvement on the way things are programmed here, because this shortcut has to force moho to take a few extra steps calculating which layer is the selected one and if that layer has the "ignore by layer selector" property activated so I don't see any reason to be faster.

I have tested some of my old complex and problematic projects (corrupted references) and I see similar results: disabling the timeline visibility of the layers fixes the lag in the layer selection.

But I checked some healthy recent projects that are more complex than yours that don't have this problem even when the timeline is showing 7 layers, so I guess there is something wrong with that file or some difference here.
viccho
Posts: 38
Joined: Wed Jun 29, 2022 7:49 am

Re: experiencing lag, manipulating layer

Post by viccho »

Thank you all for taking time for fix my problem.
I've tried to relaod moho without png and the problem was still here.
But when deselcted timeline visualisation of layer, it improved the speed.
I don't really a difference when alt+rightclic (maybe i do it wrong or miss something)

you're great
thank you some much
User avatar
EricTheFish
Posts: 91
Joined: Thu Jun 15, 2017 4:37 pm
Location: Lymm, UK

Re: experiencing lag, manipulating layer

Post by EricTheFish »

@ viccho
I had a look at your file and layer selection is indeed slow.
I noticed that under the HEAD layer there are quite a lot of nested switch layers each with masking set.
As a test, I deleted the MOUTH switch layer and things speeded up. I then deleted the HEAD layer and selecting layers then becomes fast as normal.

I suspect that all the nested masking on nested switch layers is causing/contributing to layer selection lag.
I would go through the layers and see if masking is absolutely necessary and remove what you don't really need.

Hope this helps.
EricTheFish
Artist, musician, animator, coder and dabbler in stuff
www.tech-nique.co.uk
viccho
Posts: 38
Joined: Wed Jun 29, 2022 7:49 am

Re: experiencing lag, manipulating layer

Post by viccho »

yeah , very helpfull, thank you, it's my first rig with online tuto, and some precious help on this forum but sure i 've made a lot of unorthodox things. :)
User avatar
hayasidist
Posts: 3841
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: experiencing lag, manipulating layer

Post by hayasidist »

viccho wrote: Fri Jan 27, 2023 4:28 pm I've tried to relaod moho without png and the problem was still here.
hmm -- I might have explained that badly...

what I was asking you to try was:

load your moho file into moho with pngs
hold down the shift, alt and ctrl keys and press L (that will restart moho with the file still active)
did Moho crash or restart properly?


repeat with your file minus the pngs.
Post Reply