Inspector drops my FPS to 0

0 favourites
  • 5 posts
From the Asset Store
320 high-quality cinematic sound effects for trailers and game scenes.
  • For some reason, today, the Inspector started dropping my FPS to 0 when I'm moving my mouse. This happens only when all of these are true:

    • The Inspector is docked
    • The Inspector is on the Inspect tab
    • The preview is not in fullscreen (in fullscreen it drops far less frames)
    • I'm not holding any of the mouse buttons down (especially the left button, if I hold any other mouse button it still drops 20-30 frames).

    It's weird because I opened a backup of my project from 2 years ago and it's doing the same thing, so surely it can't be something I did recently?

    I've only noticed this on my main project and it doesn't appear to happen in other ones.

    What I have tried is restarting my browser, restarting my PC, using different browsers (all of them), updating Construct to the latest stable version, deleting some of my code, deleting all of my code, deleting layers. Deleting all of my event sheets does work to some degree and it only drops to around 100 FPS, but it's still there. Only when I delete all the event sheets and all of the layers does this issue goes away. But that's not helping much. Could it be related to how many resources are given to the browser by the OS? But how would that even be related to whether I'm holding my mouse button down or not?

    The reason I tried many of those things is because I didn't have this issue until today, clearly it's something tied to this project specifically or it might just be because it's fairly large:

    Layouts: 16
    Event sheets: 18
    Total number of events: 1883
    Total number of conditions: 2095
    Total number of actions: 2565
    Total lines of JavaScript code: 256
    Object types: 208
    Families: 8
    

    I would really appreciate some ideas! Obviously I can't upload my project nor were I successful of reproducing it in a demo project, so it's understandable if nobody can help me directly, but I figured I might as well try...

    One more thing, and quite important at that, should I even care? Sure it's unpleasant for me at times, but after all it doesn't affect the game performance when the debugger is turned off.

    Here's a visual demonstration of what it looks like

    Subscribe to Construct videos now
  • Have you tried Firefox? It's the only browser not based on Chromium, so it's unlikely to have this issue.

    I understand you've tried removing all event sheets, did you also remove all scripts?

    Instead of removing all event sheets, try creating a blank layout with no event sheet attached.

    It may be a big job, but as an experiment you can also copy all your layouts to a blank project and see if it still happens there. Maybe the problem is caused by something like a corrupted font or audio file.

  • Thank you for the input!

    I tried Firefox, but for some reason it refuses to use hardware acceleration for Construct editor. I've tried to tinker with the settings but wasn't successful in fixing that.

    I did however try your suggestion to copy everything into a new project:

    - Started with all objects - no issues

    - Then I added scripts, sounds, fonts and files - no issues

    - Then I added the layouts - no issues

    - Only when I added the event sheets did it start to drop frames again. However the strange thing is it didn't matter whether the layout had event sheets attached to it or not. Same frame drops in Inspect tab like described in my original post. Like what? Why? Nothing is running... I makes no sense to me. The only other thing I can think of is that the Inspector is struggling with all the variables added by the event sheets even though none of them are running/changing/updating. But if it does, then why isn't it struggling all the time, but only when mouse is moving and no mouse button is pressed? Not to mention, what's the difference in having the Inspector docked or undocked, why one is dropping frames and the other doesn't? Such a weird issue.

    I tried on a different computer to rule out hardware issues, but it's the same.

  • The only other thing I can think of is that the Inspector is struggling with all the variables added by the event sheets even though none of them are running/changing/updating.

    You may be on the right track, although I tried making a blank project with thousands of global variables and couldn't reproduce it. Can you try this?

    There was a bug report about a very similar issue - on layouts with many layers the System tab in Debug Mode was updating very slowly causing severe lags. Maybe it's something similar, but specific to your machine or your project.

    Check out all comments:

    github.com/Scirra/Construct-bugs/issues/5926

    construct.net/en/forum/construct-3/general-discussion-7/debug-view-extremely-slow-171386

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well yes, that is very similar issue with the exception of when it occurs. Mine only happen when moving the mouse, but everything else is the same. My worker is set on auto, tried on both off and on, but it doesn't do much.

    At the very least I know that it's not an issue with my project, but most likely someone f-ed up Chromium again. I wish I could test Firefox so I know for sure, but I really don't have the mental preperation to deal with more browser issues right now. Maybe I'll give it another go to make the hardware acceleration work later this week.

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