Chadori's Forum Posts

    - 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    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.

    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.

    Thanks for the details

    Layouts might be a "part" of the problem, but not the problem itself. We will need Ashley to confirm. But I have very few layouts and I hit this issue. In the example CAPX, there is only 1-2 layouts. My current project with the issue has 10 layouts.

    About that... I double checked and I confirmed that the layout count doesn't significantly affect the performance. It's the actual objects themselves. I'm sorry about the confusion.

    As the object count increases, the dialog delay increases.

    Although now I just found a little workaround or possibly even the fix for Windows 10 users having unjustifiable difference in performance with other Windows OS versions. Updating the Graphics Card and NViDiA video cards help for those who installed the Windows 10 Fall Creators Update.

    The NViDiA drivers and Intel Graphics Cards don't work at their optimum level after the Windows Update without updating the drivers manually.

    It seems like Windows 10 see them as incompatible.

    The update reduced the delay from (30 seconds to crashing) to (5 to 20 seconds) increasing the performance of the (Hardware - OS) to compensate for the original problem.

    Compared to my Windows 8.1 PC, it is in margin of error, equal in performance now.

    With that said, that was only a possible fix for Windows 10 problems not matching performance with other OS.

    The original problem is still there. C2 just can't handle that many objects optimally.

    I still have the 5+ seconds delay for every dialog popup like everyone else!

    I confirm this.

    Dialogs Boxes takes up to 10 ~ 30 seconds to pop up and sometimes even fails. At this point, the whole program gets weird.

    This is very annoying.

    With my current computer specs, it's impossible to be a hardware problem.

    And my PC operating system runs very well too. I do 3D and Video creations with this laptop. And never had a problem.

    I do admit that I have a lot of objects in my C2 project. But it's nowhere near 10,000, so it's unlikely that is the case. With that said, the bigger the project becomes the slower Construct 2 gets. Construct 2 / Windows, 10,000 object limit.

    I have tried moving my project to another computer with inferior specs and have observed that the computer works as bad but slightly better than my stronger PC with a dedicated GPU, better RAM and a 7th Gen i7 CPU.

    It seems as if it wasn't even using the resources available from my computer.

    Ashley this is a very dire situation for us who invested time and trust to use the program you have created to create our projects but it can't even keep up with the pace unlike advertised.

    My main specs:

    Asus ROG GL553VD

    Processor: Intel Core i7-7700HQ (Intel Core i7)

    Dedicated GPU : GTX 1050

    Graphics Card: Intel HD 630

    Memory: 8GB , DDR4-2400

    Display: 15.6 inch 16:9, 1920 x 1080 pixel 141 PPI, No, BOE HF NV156FHM-N43, IPS,

    Storage: 128 GB , 1000HDD (Construct 2 has always been in the SSD)

    OS: Windows 10

    Normally, memory usage would be less than 10 percent.

    CPU usage at peak less than 5 percent and Dedicated GPU usage would be 0 percent but as

    you can see I have a lot of programs opened including numerous (~15) chrome tabs on youtube and VLC playing

    a movie in an external monitor.

    All working quite fast except Construct 2.

    Other PC:

    Acer Aspire Switch 12

    Processor: Intel Core M 5Y10c

    Ram: 4GB

    Graphics Card: Intel HD 5300

    SSD: 120GB

    Display Size: 12.5" 1920 X 1080

    OS: Windows 8.1

    Surprisingly, it works better in Windows 8.1 and non-dedicated GPUs. But it is still very slow and sluggish.

    My project contains:

    • <,> or = 500 objects in the project. Not exceeding 1000.
    • 300 to 500 layouts.
    • 50 event sheets.
    • 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
    • Contains Spriter SCMLs and XMLs

    Ashley please investigate this. We will gladly provide you with data you request as soon as you start the task to find out the culprit of this problem.

    This might help C3 in the future as well.

    Thanks, Scirra Team.

    P?S?:? ?A?f?t?e?r? ?t?a?l?k?i?n?g? ?w?i?t?h? ?o?t?h?e?r? ?C?2? ?u?s?e?r?s?,? ?w?e? ?c?a?m?e? ?t?o? ?a? ?s?u?s?p?i?c?i?o?n? ?t?h?a?t? ?i?t? ?m?a?y? ?b?e? ?b?e?c?a?u?s?e? ?o?f? ?t?h?e? ?n?u?m?b?e?r? ?o?f? ?l?a?y?o?u?t?s? ?t?h?a?t? ?I? ?h?a?v?e?.?

  • I'm having this exact problem too, it's been really frustrating me for a few years, would really like it if the solution was figured out.

    I'm having the problem where sometimes when I try to drag selected objects with the mouse, they don't drag in the way I intended (hard to explain, but they like jump around and stuff), and the dragged objects often get moved to another layer when I try to drag them, as well as often changing the active layer.

    In other cases, the active layer just seems to randomly change, may or may not be related to the above.

    I don't know if our problem is related but this bug was already fixed last year. Although, I suggest you check out my bug report and test if this is the cause of your problem or at the very least you can use this as a reference to come up a way to debug your own problem.