Chadori's Recent Forum Activity

    - amazing capx! It took 2 min 30 secs for the c2 editor to open it and then, once it was running (with 1.67 Gb of memory used..!) it was totally unusable - sluggish or broken dialogues (not responding) etc.

    Just out of interest I dragged the capx into c3 - it took about 1 min to digest it. All appeared ok (190 Mb memory used) and at least the layout editor showed me the sprites that were not displayed on c2. However it crashed when I clicked to view an event sheet... Stuck on Loading....

    Mmmm.

    i5-3320M 2.60GHz, 1g Gb RAM, SSD drives.

    Hahahah thanks. Try it on an old/inferior PC with Windows 7, Windows 8 or Windows 8.1 . You'll get amazing performance.

    At best, less than a second delay. Almost instant.

    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

    - Have you joined the C2/C3 discord server yet? It's better there to communicate since we can share info faster and the others can help us out too.

    Here is the link. Meet us there.

    Ashley if we may ask, what specs and OS are you using to reproduce the problem?

    1 second with 1000 variables is not bad enough to seem to need fixing. I don't see it taking any amount of time as bad as anyone else reports, especially not 10sec+, so basically this is "can't reproduce".

    There may well be other cases, but what I am trying to tell you is I don't have any way to reproduce those either. I need steps to reproduce and example projects, for each potential slow case. I don't have any right now. All I've got is one edge case with variables that doesn't look particularly bad.

    I'll make you one! I'll make a super bloated .capx even if it costs me hours.

    Just prioritize this please Ashley . I've been tweaking OS settings and registry for days now.

    FYI C2 lazy-creates icons, so the first time you open a dialog it goes and creates thumbnails of the objects in the project. Lazy-creating is important to avoid reaching the 10000 graphics object limit in Windows - it avoids creating icons for things that aren't used or looked at. This would be difficult to change, since if we create icons in advance, it will in some cases unnecessarily use more of the Windows limit. (In C3 we spritesheet icons so, fingers crossed, this should never be a problem ever again in C3.) Anyway, it explains why the first open is sometimes slower, but in a long session only the subsequent opens really matter, so that's what I'd prefer to focus on.

    It's strange Windows 8.1 with C2 and objects load instantly but in Windows 10 it loads 5 seconds at best.

    "C2 lazy-creates icons" is not the problem. That works fine.

    The problem is different, it does not load fast. Even with High PC Specs.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads

    Please be patient. This issue is only about a week old and was filed over the holidays when everyone was out of office.

    I took a look at Slow.capx. It seemed OK to me. I have a high-end machine, but I ran a debug build with optimisations disabled which usually more than cancels out the fact it's a high-end machine; despite that it still opened quickly enough (I'd say ~1 second). After a few quick checks I realised the project has around 1000 global variables and most of the work opening the dialog seems to be filling the dropdown list with 1000 entries.

    So all this report proves so far is "editing actions using event variables is slow if you have 1000+ variables", which is a really specific situation. It sounds like there's some confusion in this thread over what the problem really is. It seems there may be different cases which are also slow, but unless there is a separate report for those, complete with example projects and reproduction steps such as in this case, I don't have anything to work with. So please try to narrow down each individual case; it seems unlikely that everyone here has a project with 1000 global variables and are repeatedly editing actions with variable parameters.

    FYI C2 lazy-creates icons, so the first time you open a dialog it goes and creates thumbnails of the objects in the project. Lazy-creating is important to avoid reaching the 10000 graphics object limit in Windows - it avoids creating icons for things that aren't used or looked at. This would be difficult to change, since if we create icons in advance, it will in some cases unnecessarily use more of the Windows limit. (In C3 we spritesheet icons so, fingers crossed, this should never be a problem ever again in C3.) Anyway, it explains why the first open is sometimes slower, but in a long session only the subsequent opens really matter, so that's what I'd prefer to focus on.

    My project contains:

    <,> or = ?5?0?0? 1000 objects in the project. Not exceeding ?1?0?0?0? 1200.

    1000+ animation folders. (1000 objects)

    300 to 500 layouts.

    300 to 500 event sheets. + 20 eventsheets.

    Less than 30 families. (Stopped using families after encountering problems with loading them in the dialog, which we all confirmed and reported)

    19000 to 20,000 UID instances on entire 500 layouts.

    Contains Spriter SCMLs and XMLs

    I only have around 200 variables. And I have not experienced any slowdowns.

    But I don't know in the future.

    Although I know that Layouts and Event sheets don't cause any slowdown.

    I'm not sure about variables but I know that Groups, Events and Comments also don't cause any slowdown cause I

    have a lot of those.

    The things that I've proven to cause slowdown are the:

    +Families

    and especially

    +Objects in the object type folder.

    Anything that pops up in the dialog, even around only 50 objects already causes a second pop-up delay.

    This happens when trying to load an object when adding. editing and replacing events/objects when the dialog is about to pop-up.

    Ashley - My Windows 8.1 with no dedicated GPU, the dialogs run instantly. It was flawless. The problem must have something to do with devices only made for Windows 10.

    Btw. I have tried to convert my project to C2 R228, C2 R249 and C2 215 (I think, I forgot). I could go lower but I already got my answer.

    I have found out that whatever version you are in, the results are the same.

    It seems that C2 is not entirely at fault. It's just C2's editor is outdated with the time and not optimized for Windows 10. Things related to Windows 10 might have changed that made C2 incompatible. Although I don't know what.

    I bought this laptop just a few months ago. By that time, I did not update my project's event sheet but I noticed slow performance with the editor every time I import an object but I persisted the image import delays since I, up until now have a deadline and I thought I can manage. Besides, I have been busy more with Spriter animations at that time. But now I'm making events and my project has 2x more objects and the delays make C2 unusable.

    To test my theory that this has been happening since or even before July 2017, I made a factory reset and turned off my internet connection to avoid any windows update. My Laptop's model design and factory software was released on July 2017, so I can use it as a base.

    So after the factory reset, I installed C2 immediately to find out if there is still a lag. And it's still there.

    Btw. I ran Windows 8.1 inside my computer with a Virtual Machine. And it worked flawlessly.

    - I have edited my comment. Reread again please.

    are you using a laptop with Windows 10? Is it clean installed?

    Windows 8.1 is doing good but not Windows 10.

    People who commonly have this issue are using a laptop with Windows 10 in it since most Desktop users with Windows 10 aren't affected.

    I'm not sure but I assume that it might have to do with manufacturer drivers or OS customized bloatware on laptop devices.

    Though, this is just a matter of speculation.

    How is it going on your end?

    Does changing the icon caching option in preferences affect this?

    The test were conducted while the "Icon Mode" is set to "Don't show unique icons (least memory)".

    I would say the matter is unrelated. There is already a huge performance loss (delay) with / without unique icons.

    The performance (delay) is even worse when showing unique icons, either cached or not.

    > Found a solution: not ideal and probably temporary. but switched to construct 3 and so far the lagging and freezing on my larger game has stopped (the saving takes forever though)

    >

    Yeah a workaround for some, but no solution for others. But it is a great quick fix (I ended doing this for one of my projects recently that was on a tight timeline and could not wait for the bug fix any longer).

    zenbynature, (and and )

    Can you try this?

    shutdown with command line using

    > C:\Windows\System32\shutdown.exe /s /t 0

    When I shut down this way, I seem to have better response times. But it could be coincidental. also worth noting, even after this test the response time is still at unacceptable levels.

    I should have said this sooner but I restart my PC every ~30 mins ever since I've encountered this problem as a workaround. As time passes, C2 becomes more and more sluggish. After a reboot, the 5 to 10 seconds delay becomes only 3 seconds every time I restart or shutdown, not sure if it has the same effects when logging out my PC though.

    Also, I have tried to convert my project to C3 before but in order for me to have done that, I had to delete my incompatible plugins.

    Because of the fact that C3 isn't cross compatible with C2, it's only a one way conversion. I would say this is an impractical solution for

    C3 isn't fully equipped with essential 3rd party extensions yet. It's way too soon to permanently move especially with the limited SDK of C3.

Chadori's avatar

Chadori

Member since 10 Oct, 2014

Twitter
Chadori has 50 followers

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

24/44
How to earn trophies