Low FPS at Start of Game

0 favourites
  • 7 posts
From the Asset Store
High Low is a casino game using luck and points accumulation.
  • I've noticed that when I first run a project, the FPS drops pretty low for the first few seconds, and then it gets back to 59-60 FPS. There aren't that many events running "At Start of Layout".

    I have quite a few objects which are not in use yet, so I just drag them off screen and select the "Destroy outside layout" behaviour. Could this be part of the problem, or does this happen often in larger / complex games?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check "project setting" and looking for "use loader layout" set it to "No".

    If use loader layout set to "yes" , it's mean your project load the first layout and script, start the game and continuous loading another layout, it's reason FPS drop for a few second. If user layout set to "no", the whole project will be loaded and start game.

  • Just checked it, the "Use Loader Layout" is set to no. There are a few events and computations at the start of the layout, but when these reoccur after the initial lag, there doesn't seem to be a problem.

  • This kind of behavior is pretty normal: in the first few seconds, the browser will be compiling javascript and optimising everything for maximum performance, which takes a lot of CPU time and slows down the game. Once it's done everything should run smoothly. All you can really do about this is try to make the player spend the first few seconds on a menu screen so all the optimisation happens when performance isn't essential.

  • Thanks for the answer Ashley. Does this occur whenever a new layout is loaded, or only just after the initial load?

  • Len - it should only happen at the beginning of the entire game. The code is already optimised when switching layout so it should not be doing any extra work there.

  • Sweet, thanks again.

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