CaptainShadow5
Newbie
- Oct 11, 2018
- 72
- 10
I mentioned previously a bloating issue in a couple list variables used for unlocked events, which are being added to despite the added events already being present in them, I posted a quick fix here:For me it's very slow in firefox, more or less acceptable in chrome. The longer played - the slower it gets. Maybe some garbage collection in state object gone wrong, dunno.
Just a heads up, There's a bloating issue with the unlocked event arrays, there are several processes where event keys are being added to them without regard for whether or not the array already has the key, resulting in extremely large arrays full of duplicate keys. For now I've made a temporary solution by filtering them when I sleep, but It would be best to fix the cause of the issue, instead of the issue itself. If you're experiencing huge save files and slow loading, you should be able to fix it by adding the lines below to the NightEvent-0 passage, I placed it after the "Fade into a dream..." line.
<<set $WorkEventsUnlocked to removeDupes($WorkEventsUnlocked)>>
<<set $HomeEventsUnlocked to removeDupes($HomeEventsUnlocked)>>
<<set $DreamEventsUnlocked to removeDupes($DreamEventsUnlocked)>>
<<set $NightEventsUnlocked to removeDupes($NightEventsUnlocked)>>