First I would like to thank — for your persistence in making and maintaining this bug report. And also the others for testing and providing us with their data.
And also, thank you Ashley for giving time to check this out.
Attach a Capx
____ Upload a Capx to this post ____
https://1drv.ms/u/s!AjcW2ueud6qp9XKToYjiVhFlwk9n
The .capx is 96.5MB but it could have been atleast 10MB if I didn't add some few big sprites. Just in case it helps imitate a real project.
Description of Capx
The .capx contains :
+1000+- objects
+1 Event Sheet
+32 Layouts
+20,000 instances of global instances. (UID)
The project file will show how slow the dialog popup, loading time of objects and event making in Construct 2.
Base on my previous tests. I tested this problem with the previous versions of C2 by converting my base project in order to make sure this is not an update problem. Those previous versions were R215, R228, R229 and R250. I actually could go on but I already found out my answer.
The problem occurs and should occur in all versions of C2.
It is a C2 design flaw that was not a problem for mainly 2 reasons:
1)Windows 10 requires new methods of optimization since as you said Ashley "Windows 10 has greater performance overhead or something".
Windows 7, 8 and 8.1 are without a doubt faster but inferior in features.
2)Previous projects didn't use a lot of objects or atleast not near to meet the limit to reach the 5 seconds delay.
Windows 8.1 runs this project with lots of objects quite fast but I also noticed delays after reaching 500 objects especially 1000 objects but
nowhere slow as Windows 10.
So the problem is actually there just requires more push in older OS versions.
I actually have noticed this problem back on R229 and made a bug report because the dialog popup takes 1.5 seconds and I suspected that it was the update but afterwards reporting it I noticed that it was actually not but my project got bigger and had more objects and it got slower in dialog popup. But I eventually just endured it.
Now Just a few months ago I bought a new laptop and noticed C2 got slower from 1.5 ~ 2.0 seconds to about 3 seconds. But I was not using the
event sheet frequently. I was editing layouts, adding objects and using spriter for months so I ignored it.
Now I'm back to the event sheet and noticed after importing more sprites. It takes 5 to 10 seconds!
This is to confirm that object count really does affects C2 editor performance.
Steps to Reproduce Bug
Cache Unique Icons (Best Performance)
- Set C2 to Cache Unique Icons.
- Open .Capx
- Open EventSheet1
- Add Event (Yeah it's slow, that's how why create events now. A big pain!)
No Unique Icons (Least Memory)
- Set C2 to Don't show Unique Icons.
- Open .Capx
- Open EventSheet1
- Add Event (Yeah it's faster but still slow, that's another way we create events. A big pain too!)
- You can also remove the variables, layouts and events easily just in case you want to make sure they are not causing the performance
problem.
Observed Result
Slow Response Time. Here is an estimate reaction time:
Windows 10 : (High Specs) (Dedicated GPU)
Cache Icons : Crash or 10 to 20 seconds.
No Unique Icons : 5 to 10 seconds
Windows 8.1 : (Low Specs - 4GB Shared Memory) (FanLess CPU)
Cache Icons : 3 seconds.
No Unique Icons : 1 to 2 seconds.
Expected Result
Instant dialog popup especially those with good computer specifications.
Operating System and Service Pack
Windows 10
Construct 2 Version ID
R215, R228, R229 and R250