Construct 3 Game Keeps Freezing

0 favourites
  • 10 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hello! I am using Construct 3 for a school project. My game is a top down shooter with some similarities to an example project, however, after coding quite a lot of features and a main menu, the game keeps freezing when I run it starting from the main menu.

    I can only make it in for about 30 seconds before the game freezes.

    The game is still running, however, I can still hear sounds, the zombies are still chasing...

    Does anyone know the cause of this problem? I looked into this issue and saw that some other people are having the same problem but there wasn't much of a solution.

    It may just be how resource intensive my game is, but I don't want to remove any features.

    This is a link to my project download: drive.google.com/file/d/1l3H2OqQ3npD0kVX6qtuNhhoWikgMemb9/view

    Thanks everyone!

  • Run the game in Debug Mode (Shift+F4) and check object counters on the left panel. It sounds like too many objects get spawned. Also, if you posting your game here, you need to post c3p project, not an exported game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for your reply! I ran my game in Debug Mode and the objects peak at ~384 when I create a particle effect, however, the game still freezes when the objects are at 94. I uploaded the C3P file, sorry I forgot you can't edit the exported files.

    https://drive.google.com/file/d/1niF0W4_QwoCvC13laad-7lBq47bIHaQu/view?usp=sharing

  • Change Framerate Mode to V-synced in project properties. "Unlimited" mode can only be used for testing.

    Other than that I don't see any issues, the game runs fine for me, I played it for several minutes.

  • It only freezes when I play from the menu and swapping layouts, other than that, it freezes after around 30 seconds. I've tested the game on several devices, my laptop, my sisters laptop, school PCs and even my friend's gaming pc.

  • After changing to VSync, the game seems to be better, but everything runs slower and bullet collisions aren't accurate, is there a fix for that?

  • It freezes by me too. I get an error in the console.

    Uncaught TypeError: Cannot read properties of null (reading 'EndTimeElapsed')

    I think that there is a problem with Framerate mode 'unlimited'. It looks like there is an overflow or something. Maybe it depends on the type of Graphikcard or memory if it doesn't appear on dops Computer.

  • After changing to VSync, the game seems to be better, but everything runs slower and bullet collisions aren't accurate, is there a fix for that?

    You definitely should fix the game to work with V-sync mode. Unlimited mode is only used for stress-testing and you can't release the game with Unlimited mode.

    To improve bullet collision use stepping mode in bullet behavior. There is an official example for it in Construct.

    Also you shouldn't use "Find path" for enemies on every tick, it's bad for performance.

    Maybe it depends on the type of Graphikcard or memory if it doesn't appear on dops Computer.

    I tested on a pretty old laptop with Intel HD video and 8GB RAM.

  • Somone had a similar issue on the Discord Server today.

    From what we found it only happened with this combination:

    layout changing with unlimited frames/ticks, on chromium browsers with an AMD GPU.

  • Thank you all so very much!

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