Oversized "AppData" Cache?

Discussion and feedback on Construct 2

Post » Thu Nov 28, 2013 2:46 pm

@Katala , Haha you beat the high score, I only had 900,000 files at most! Glad I could be of use :P

@Stiivais , I assume you went into the correct AppData folder, though I believe this file overload thing is only if you preview with Node-Webkit a lot. Perhaps you're using another browser :P The "Project Name" folder like in my first posts screenshot has the "Local Storage" folder, so if you didn't have this cache folder, you're Local Storage data in Node-Webkit wouldn't exist :P

@Ashley I'll try to be as thorough as possible :)
It's when I'm previewing a single project multiple times, literally every time I hit the Preview button, it's creating files that won't get deleted. I'm currently looking into when it happens, and I've come to the conclusion that this all only happens when you're previewing a .caproj (NOT a .capx). I've explored my appdata folder, I can find only projects that are .caproj (I don't see any folders for the times I previewed bug tests and whatnot)
And GOOD NEWS! Projects exported in Node-Webkit don't even create a "Cache" folder at all it appears! (Other files appeared in the appdata/projectname folder, such as a file called "lockfile", but nothing about the dreaded cache folder)
Further investigation just to see how bad the damage is, is that upon previewing my game (which is a pretty busy game, but only "Approx.Download: 6.9mb, memory use: 14.2mb), the Cache folder will generate 2,063 files at startup, and will increase as other things load dynamically like sounds. It's got to 4,193 files from one single preview.
Now here's where I my research becomes useless- I close the Node-Webkit preview, and the files remain there, and upon previewing again, it will randomly either reset back to 2,063 files, or it will continue adding on and get up to 8,000 files (and further). I don't really know what else to analyse after this lol.
Hope this was of use!
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Thu Nov 28, 2013 4:00 pm

OK, I've put a fix in to the next release (which is a stable update, but hopefully it doesn't break anything...) - I could reproduce a file leak and after the fix of clearCache() on startup it seems to be stable and not continually increasing.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Thu Nov 28, 2013 4:52 pm

Huzzah!
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Thu Nov 28, 2013 4:56 pm

I also think this was the issue I had after computer start the first preview could took something like 5-10 minutes. Also I am using CAPX and not CAPROJ.
B
34
S
9
G
3
Posts: 517
Reputation: 5,226

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Sup with that? and 18 guests