Closed midorlo closed 3 years ago
This PR has been integrated in Annosz's fork: https://github.com/Annosz/UIInfoSuite2
Caching can definitely be valuable, but this is not the way to do it here IMHO. A separate function should be used that is run less than the rendering loop so that you don't have to add all these if checks. Those alone mostly negate any advantages you gain from your cache.
Also please don't delete my commented sections or change my style.
Caching this data (and any that may come later) we save rendering time.