Help! Editor randomly lagging and freezing

2 favourites
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.

    1StepCloser I know what you are talking about. C3 begins to lag when populating long lists of objects or expressions/variables. But these lags are relatively small, in largest projects I've seen the lags were about a second or two. It definitely doesn't explain random 10-20 second freezes in my case. They are probably related to the same functions, but something else makes the issue much worse.

    Yeah, the 10-20 seconds lags are hard for me to reproduce and suggests a more catastrophic failure.

    You mentioned a removeChildCall, I ran a quick test comparing a large project vs. a fresh project, testing the time it takes to clear the dropdown list.

    Subscribe to Construct videos now

    In your gif, once you select the choose function, the dropdown list has to clear the elements, could this be a factor?

    In your gif, once you select the choose function, the dropdown list has to clear the elements, could this be a factor?

    Not sure what you mean, which elements? Theoretically, the number of objects and variables in the project should not affect system expressions like "choose" at all.

    Another possibility is that its actually Chrome that causes these freezes (as Asmodean suggested in his comment), because it does something as I type, like performs a spell check. I disabled the spell check yesterday, but I can't tell yet if it helped or not..

    > In your gif, once you select the choose function, the dropdown list has to clear the elements, could this be a factor?

    Not sure what you mean, which elements? Theoretically, the number of objects and variables in the project should not affect system expressions like "choose" at all.

    Another possibility is that its actually Chrome that causes these freezes (as Asmodean suggested in his comment), because it does something as I type, like performs a spell check. I disabled the spell check yesterday, but I can't tell yet if it helped or not..

    I'm referring to the # of elements in the dropdown list.

    I'm wondering if the issue lies in how each of those elements are removed from the list, and I was wondering if that removeChildCall is involved.

    To further explain:

    In my video example, the blank project has an element list of 1, while the larger project has an element list equal to the total # of groups in the entire project, as the dropdown list shows every single entry, but sorts based on the entries that match closest.

    In your gif, you see how the list remains even when you are at "choo"?

    This is why I mentioned the preference to set the specificity of the dropdown list to the top (10,20,etc) entries.

    When I'm at "choo" while typing, I'd personally only want "choose" and "chooseindex" to populate in the dropdown list, not "clocktext". This is now a list of 2, which presumably would make clearance of the dropdown list much smoother (if that's at all a factor).

    (Scrolling all the way to the bottom of the list)

    If all entries are populated in the list regardless of what's typed then as a project grows, so does this list.

    Of course this doesn't mean it's the issue, but if I had the option to set the dropdown list limit to: 20

    And then performed the same test I showed in the video, and I saw an improvement, I'd like to think that suggests the element count in the dropdown list is involved.

    When I'm at "choo" while typing, I'd personally only want "choose" and "chooseindex" to populate in the dropdown list, not "clocktext".

    I agree. Not only these long lists are slow, they become less and less useful when they contain hundreds of objects mixed with expressions and variables.

    Filtering them as you type is one solution. Another option would be splitting the list somehow, perhaps displaying two or three lists side-by-side - one with expressions, another with objects, and the third with variables.

    > When I'm at "choo" while typing, I'd personally only want "choose" and "chooseindex" to populate in the dropdown list, not "clocktext".

    I agree. Not only these long lists are slow, they become less and less useful when they contain hundreds of objects mixed with expressions and variables.

    Filtering them as you type is one solution. Another option would be splitting the list somehow, perhaps displaying two or three lists side-by-side - one with expressions, another with objects, and the third with variables.

    Ahh, that's a good idea too, when you are going for choose(), there is no need to populate the list with variables and objects.

    Either/both of those (dropdown limit, dropdown category) could be useful.

    If you can reliably reproduce an issue with Construct, please file an issue. You don't need to share your whole project, you can just fill a project with dummy content.

    If you can reliably reproduce an issue with Construct, please file an issue. You don't need to share your whole project, you can just fill a project with dummy content.

    github.com/Scirra/Construct-3-bugs/issues/6301

    So I tried every suggestion from this post:

    • Installing Chrome Canary
    • Disabling spell check and auto-fill for addresses
    • Clearing browser cache and auto-fill data
    • Disabling windows defender
    • Checking the drive for errors - none found
    • Closing all background apps I could find (Google Drive, Dropbox client etc.)

    Nothing helped, C3 editor is still randomly freezing and lagging..

    Very strange. Do you have this problem only with chrome based browsers? Does it work on FireFox correctly?

    Have you tried to disable hardware acceleration in Chrome? Sometimes that should help with strange problems.

    I believe Firefox can't save or backup projects directly on disk and this is a must have for me. Even if I test and find out that Firefox doesn't lag, I still won't be able to use it.

    Same with the hardware acceleration - my game won't work without WebGL, so I can't just disable it permanently.

    I will try Edge tomorrow.

    But you could see if it's a chrome only problem. If it affect both FireFox and Chrome but with disabled Hardware Acceleration it works fine, it could be a driver problem.

    Dop, Ashley checked the bug submission and was able to reproduce the issues I mentioned.

    If you'd like to weigh in on it, as figuring out the solution appears to be difficult:

    So I'm afraid it's not clear to me what else could realistically be done at this time.

    github.com/Scirra/Construct-3-bugs/issues/6301

    Time will tell, but r321's performance improvement for autocomplete has significantly improved autocomplete performance in my project.

    Thank you Ashley.

    Have you given it a try yet dop?

    Maybe try updating the Nvidia graphics card driver? Or open the NVIDIA Control Panel,Check the 3D settings, if some features have been modified globally, if not sure, you can try to restore the default settings.(For example, I have tried to turn on anti-aliasing globally, which caused my VSCode code to be blurred.because it uses GPU rendering)

    If it still doesn't work, is it something to do with the computer's power options? For example, the laptop has turned on the power saving mode

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    XHXIAIEIN Nvidia GPU is disabled when I'm working in Construct. It uses the integrated Radeon graphics.

    Regarding some problem with the power - I guess this may be possible, but it would probably affect all apps. Like I said, other apps are not affected by these freezes.

    1StepCloser Thanks for posting that bug report!

    I haven't tried the latest beta yet. I expect it will probably make the freezes shorter, but won't fix them completely, because something else (not autocomplete) is causing these lags in my case.

    Yesterday my Chrome was lagging almost non-stop for about half an hour. Even opening the project was taking 3-5 minutes instead of the usual 10-20 seconds. And today there were barely any lags. This randomness is driving me crazy!

    Asmodean I tried your suggestions. Chrome with disabled hardware acceleration - still freezes. Edge - same thing. So it must be something specific to the Chromium engine.

    Firefox - no freezes, but it's just generally quite slow. My game runs at 100 fps in Chrome, but only at 30-40 fps in Firefox.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)