Closed wahfl2 closed 10 months ago
Although I fully agree that this is a very serious issue that will be looked into, this PR has several issues which stop it from being merged on its own.
text
components into accountI will look into optimizing the string matching code as soon as I'm able to. Thank you for bringing this to my attention.
My bad, that whole thing was pretty much a micro-optimization. You can still improve the performance by about 2000% in the case above by using Text.Serializer.fromLenientJson()
instead of letting it throw an error and proceeding to ignore it.
Currently, performance with many string-dependent CIT items being rendered is pretty much unplayable on any system.
I have a Ryzen 7 3700x and an RTX 3060ti, and this is my performance in the Hypixel Skyblock lobby with a CIT-dependent resource pack. The cache invalidation time is at the default 50ms.![2023-08-29_18 40 35](https://github.com/SHsuperCM/CITResewn/assets/59855656/979f7112-e68e-4866-9378-58ff714a0a51)
With these changes:![2023-08-29_18 49 38](https://github.com/SHsuperCM/CITResewn/assets/59855656/3fef2daa-1812-43b3-a7ef-3230f4d122cc)
The performance could be improved more by implementing a less naïve cache system, but this fixes a few fatal performance flaws.