CFC-Servers / gm_addon_optimization_tricks

Tips & Tricks to make your addon slim and fast
GNU General Public License v3.0
15 stars 5 forks source link

Big ol' set of Enhancements/Features #6

Open NathanX-S opened 3 weeks ago

NathanX-S commented 3 weeks ago
wrefgtzweve commented 3 weeks ago

Multithreading isn't really needed, most if not all scripts can just do large addons in seconds, python multithreading is exceptionally poor anyways and might not even add any speedup. I've been wanting to write some kind of global cli for all of them but haven't had the will/time to as they work fine manually right now, it's planned though. What's the point of png -> vtf/jpg? vtfedit can do it already with gui and has bulk conversion options. Progress bars in python are ironically rather slow usually, from the times i tested public libraries they had significiant performance impacts for fast progressing bars (like ours), and the tools only take a few seconds it's not that big of a deal.

NathanX-S commented 3 weeks ago

Multithreading isn't really needed, most if not all scripts can just do large addons in seconds, python multithreading is exceptionally poor anyways and might not even add any speedup. I've been wanting to write some kind of global cli for all of them but haven't had the will/time to as they work fine manually right now, it's planned though. What's the point of png -> vtf/jpg? vtfedit can do it already with gui and has bulk conversion options. Progress bars in python are ironically rather slow usually, from the times i tested public libraries they had significiant performance impacts for fast progressing bars (like ours), and the tools only take a few seconds it's not that big of a deal.

It took hours to run find unused on my collection and then it dropped dead after encountering an error. 3.7+ might be better?

wrefgtzweve commented 3 weeks ago

I use python 3.12 if that's what you mean How large is your collection?