Contains executable files or external scripts. Ensure you trust the creator and apply your own security measures.
A light weight plugin to track how many times different .var files are called during VAM use. VAM was starting to load slowly and I discovered over 6000 .var files, many of which were old versions of vars that I love. (ie AcidBubbles.Timeline.4, AcidBubbles.Timeline.7, AcidBubbles.Timeline.15 etc)
Set to only record one "seenCount" per scan to avoid counting each texture file as a separate "seenCount" and has the option to record file size. (Recording file size will take it a minute or two to build the list)
*Nerd Alert!* All this to produce a .csv that the user can check from time to time to remove unused .var files that are wasting resources.
(Note: This plugin does not remove the .Var files, you'll have to do that manually)
Could you just delete your addon folder every 6 months and use something like DependencyViewer to grab the files you need? Sure. But for a user that has a lot of Paid Content from Patreon, it can be a pain to track down every scrap of clothing or every environment to build your favorite scenes again.
Initial testing found less than a 1 second load time using a manual timer, but functionally there's no impact on performance.
AI Disclosure: AI was used in the making of this plugin.
Instructions:
TLDR: Load as a default session plugin, check the spreadsheet in the VAM\Saves\PluginData\VarTracker folder if you want to see what is being used and what you can toss.
-Load any scene
-Enable Edit Mode (E)
-Click on hamburger stack menu
-SessionPlugin> Add varTracker session plugin
-Session Plugin Presets> Change User Defaults > Set Current
-CustomUI to set options:
-"Track" allows to toggle on or off
-"Auto Scan Interval: will automatically scan current scene every X seconds
-Update List: Manual Scan of ALL .var files to populate the .csv
--If a var used to be on the list but has been removed between Update List call, it will show F for "onDisk"
-Prune List: Deletes UID entries from .csv that are marked F for onDisk
-Scan Scene: Just a manual call to all .vars loaded in current scene
((At a Glance Window to show "onDisk" ratio and "used/neverUsed" ratio without needing to open .csv file))
*Typical Operation*
Set varTracker as a default session plugin to be loaded every time you use VAM. Go to the Custom UI and do an initial scan with "Update List" and then set the scan interval to desired rate. Continue to use VAM like you typically would for however long you want. X amount of time later you think "Hrm, VAM is loading slowly. Oh yeah, I have that varTracker running!" Then go check the .csv file (spreadsheet) and sort the "seenCount" to ascending/decending. If there are no entries in "seenCount" then the .var has never been used. If it is low and the lastSceneUTC was forever ago, it's probably safe to manually remove the .var from your AddonPackages folder.
**KnownIssues Features!**
•Sometimes it will incorrectly mark a UID for F in "onDisk" column and I have no idea why. The worst that would happen is the entry gets pruned from the spreadsheet and then added the next time it's used. Any .Var that is missing will be marked F in the "onDisk" column, the call for the file is what generates the UID entry. So if you skipped a large clothing dependency on a look, it will show as F.
•It will display an "at System.IO.File.WriteAllTex" error during Auto Scan's if you have the spreadsheet open... to remind you to close the spreadsheet!
I don't plan on trying to fix these as the functional hit is minimal/avoidable and we aren't launching rockets in to orbit with this plugin ^_^
Set to only record one "seenCount" per scan to avoid counting each texture file as a separate "seenCount" and has the option to record file size. (Recording file size will take it a minute or two to build the list)
*Nerd Alert!* All this to produce a .csv that the user can check from time to time to remove unused .var files that are wasting resources.
(Note: This plugin does not remove the .Var files, you'll have to do that manually)
Could you just delete your addon folder every 6 months and use something like DependencyViewer to grab the files you need? Sure. But for a user that has a lot of Paid Content from Patreon, it can be a pain to track down every scrap of clothing or every environment to build your favorite scenes again.
Initial testing found less than a 1 second load time using a manual timer, but functionally there's no impact on performance.
AI Disclosure: AI was used in the making of this plugin.
Instructions:
TLDR: Load as a default session plugin, check the spreadsheet in the VAM\Saves\PluginData\VarTracker folder if you want to see what is being used and what you can toss.
-Load any scene
-Enable Edit Mode (E)
-Click on hamburger stack menu
-SessionPlugin> Add varTracker session plugin
-Session Plugin Presets> Change User Defaults > Set Current
-CustomUI to set options:
-"Track" allows to toggle on or off
-"Auto Scan Interval: will automatically scan current scene every X seconds
-Update List: Manual Scan of ALL .var files to populate the .csv
--If a var used to be on the list but has been removed between Update List call, it will show F for "onDisk"
-Prune List: Deletes UID entries from .csv that are marked F for onDisk
-Scan Scene: Just a manual call to all .vars loaded in current scene
((At a Glance Window to show "onDisk" ratio and "used/neverUsed" ratio without needing to open .csv file))
*Typical Operation*
Set varTracker as a default session plugin to be loaded every time you use VAM. Go to the Custom UI and do an initial scan with "Update List" and then set the scan interval to desired rate. Continue to use VAM like you typically would for however long you want. X amount of time later you think "Hrm, VAM is loading slowly. Oh yeah, I have that varTracker running!" Then go check the .csv file (spreadsheet) and sort the "seenCount" to ascending/decending. If there are no entries in "seenCount" then the .var has never been used. If it is low and the lastSceneUTC was forever ago, it's probably safe to manually remove the .var from your AddonPackages folder.
**Known
•
•It will display an "at System.IO.File.WriteAllTex" error during Auto Scan's if you have the spreadsheet open... to remind you to close the spreadsheet!
I don't plan on trying to fix these as the functional hit is minimal/avoidable and we aren't launching rockets in to orbit with this plugin ^_^
Contains executable files or external scripts. Ensure you trust the creator and apply your own security measures.