Page 1 of 1
Do persistent variables slow down load times?
Posted: Sat Apr 09, 2022 12:01 am
by Scilirat
Lets say, hypothetically, I wanted to create a tease with 100+ persistent variables. Would this lead to an insufferably slow load time for the tease?
I'm worried that the player would have to wait like an entire minute for the tease to load.
Re: Do persistent variables slow down load times?
Posted: Sat Apr 09, 2022 1:28 am
by spaisin
Hypothetically, nah. The size in megabytes could become an issue, but a 100 numbers / short strings / whatnot isn't going to be an issue.
Practically; give it a test in a dummy..
Re: Do persistent variables slow down load times?
Posted: Sat Apr 09, 2022 4:13 am
by indyc
No, they wouldn't take up that much space. Total size of the code would be the big factor in loading. I found the max publishable size to be about 12.6mb. (I had to compress TOTS down from about 15.8 mb) I cant imagine even 1000 variables taking up 1 MB of that.
In short, I wouldnt worry about it. I've never seen anyone elses tease go higher than about 9mb.