View Single Post
Old 03-07-2022, 03:57 PM   #44
nikosan
Connoisseur
nikosan doesn't litternikosan doesn't litter
 
Posts: 61
Karma: 198
Join Date: Feb 2022
Device: Kobo Sage (prev. Kindle PW5)
Quote:
Originally Posted by chaley View Post
I think I found what is happening but I have no idea why. Action Chains is calling gui.save_state many times each VL switch. Each call writes to the database, and might trigger a .25 second delay in Action Chains.

Here is a log that shows the calls. I added a print('save state XXX') that appears each time it is called. Someone else (@capink?) must look at why it is being called so often.

FWIW: I think that the view manager setup should include the VL for each of the views so that clicking the tab and selecting the view in the View Manager do the same thing,
Oh man, finally some headway!! Thank you so much! I added that setting to each view in my VM setup. Should I jump over to the Action Chains plugin thread and ask capink about the save_state thing there?


Edit: Now that I think about it, does this account for the lag even when Action Chains wasn't doing anything, though? Just manually changing views without clicking on VL tabs has a lag too...

Last edited by nikosan; 03-07-2022 at 04:07 PM.
nikosan is offline   Reply With Quote