Blender Kitsu: F3 search lagging when I'm offline #283
Labels
No Label
Kind
Breaking
Kind
Bug
Kind: Community
Kind
Documentation
Kind
Easy
Kind
Enhancement
Kind
Feature
Kind
Proposal
Kind
Security
Kind
Studio Request
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/blender-studio-tools#283
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For some reason, when I'm offline and using Blender with the Kitsu addon installed, whenever I press F3 for the search, the system freezes for a few seconds. Could it be the new String Properties used to obtain episode, sequence, shot, and task? Perhaps for some reason, all search strings in Blender are linked, but I'm not sure.
Additionally, I have noticed that the search string system performs the update function with every UI refresh, whereas the old system that used an operator was much more efficient in terms of resource usage.
Hello @AlfonsoAnnarumma thanks for reporting.
I haven't been able to reproduce your issue, can you provide me any more details? Specifically under what conditions does the search freeze? Can you also confirm you are using the latest version of the Kitsu Add-On? I have not been able to reproduce the issue under the following conditions:
Yes the new string search system updates with each UI refresh, this is true for all string properties in Blender (we have a cache system so we don't ping the Kitsu server on each refresh). The decision was made to move away from the Operator by the Blender Studio because the UI is more consistent with Blender's core UI, there is a very small increase in resource usage. Also many Kitsu properties in the past didn't fully utilize the Cache system, like many of the VSE UI and the Shot Builder, so overall the switch to the new string system has reduced the resource usage of the add-on.
If the F3 refresh all the string properties and UI, the problem is on some poll or string update function that do a file browser operation (os.path.exitsts etc...). I work in remote with VPN and the project is in a net unity and not very fast to access.
Now I know the source, I have to find the operation that do the lagging.
Just to be clear about what the issue is...
The issue isn't that "Search is lagging when offline" infact the issue is "Search lags when my VPN connection is slow" in that case.
The Kitsu Context string properties are not refreshed when you hit F3 (I have verified this), they are only refreshed when that panel is re-drawn. Further more this refresh simply calls a custom getter which doesn't access the network or the filesystem, and therefore wouldn't be the cause of the lag.
If access to your file system is slow via that VPN, than you should reasonably expect some lag with certian operations, as most software assumes a reasonably fast connection to the file system. I reviewed the poll functions for the Blender Kitsu operators, and none of them check for an existing file, so that is not the cause of the issue. Try disabling all other add-ons to verify the issue is with the Blender Kitsu Add-On. We are not able to reproduce your issue.
I would recommend you read the Overview page for the Blender Studio Pipeline, as the system is designed to use services like Syncthing & SVN to sync between computers at different locations as an alternative to access your files over a VPN. The TD Guide will walk you through the setup process.
Thanks! Sorry for the thread, the problem is not with blender_kitsu, with fresh installation it work now (now I have to find it).