Jump to content

FPS


Ctem
 Share

Recommended Posts

Hello everyone. I'm developing a game on pixi. Faced with such a problem. When you start the game on the iphone in power saving mode, fps drops. I tried to track this to change the speed variable, but the game is still getting slower. Maybe I'm doing something wrong. Please tell me how to solve this problem?

 

   
   app.ticker.maxFPS = 60;

        app.ticker.add((time) =>
        {
            game.update();
          
             if(time.deltaMS > 33) {
                 game.counter = 2;
             }
             if(time.deltaMS < 25) {
                 game.counter = 1;
             }
        });

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...