ManlyMarco / Illusion_BrowserFolders

Add folder support to file browsers in games made by Illusion
https://www.patreon.com/ManlyMarco
GNU General Public License v3.0
31 stars 13 forks source link

FPS drops with lots of folders #8

Closed spillerrec closed 4 years ago

spillerrec commented 4 years ago

I notice frame rate issues when the mod is on-screen while showing a long list of folders. This happens both in the Koikatsu Character maker and studio.

I have a sub-folder where I have organized downloaded character cards based on what anime they are from. Which is currently around 150 folders. When expanding that sub-folder in the UI, the framerate goes from a steady 60 FPS to ~10 FPS. When collapsing it FPS recovers to 60. So it definitely seems like it is related to GUI of this mod.

This mod has been extremely helpful btw. Being able to easily combine similar different cards of the same character has been a game changer.

ManlyMarco commented 4 years ago

That's because all of the list elements are drawn every frame. To fix this the list will have to be virtualized but I never bothered because no one used more than 10 folders or so.

ManlyMarco commented 4 years ago

Fixed in #11