localstorage in some cases slow-down performance?

Get help using Construct 2

Post » Mon Nov 23, 2015 12:49 pm

I'm testing the localstorage...
the strange thing is that when I remove it the FPS increase
anyone have faced the same issue?
Thanks
B
6
S
1
Posts: 55
Reputation: 545

Post » Mon Nov 23, 2015 12:55 pm

I don't think If set up correctly, it should be that noticable..
You are not trying to load and/or save to it every tick, are you?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 23, 2015 1:05 pm

LittleStain wrote:I don't think If set up correctly, it should be that noticable..
You are not trying to load and/or save to it every tick, are you?



Hi LittleStain,

No I'm not using every tick at all
here's the screenshot

https: //onedrive.live.com/redir?resid=32B7F1EA6DA83EF%211432

just remove the space to see it

there are webstorage plugins in the same project. I'm not sure but probably this can cause the issue

thanks
B
6
S
1
Posts: 55
Reputation: 545

Post » Mon Nov 23, 2015 1:26 pm

Well, it seems you are saving to localstorage every tick that playercoins > 0..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 23, 2015 1:42 pm

LittleStain wrote:Well, it seems you are saving to localstorage every tick that playercoins > 0..


oh! there is somthing that I have to learn yet!
thanks a lot
B
6
S
1
Posts: 55
Reputation: 545


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 52 guests