Jump to content

Plummetting Frame Rate


harrywatson
 Share

Recommended Posts

Hi Everyone,  

 

My scene changing in my game in progress 'My Name is Momo' causes

the frame rate to plummet down to 5fps

 

http://harrywatson.altervista.org/momo/index2.html

 

I've used a profiler to isolate it down to the following event listener type (I have a number of these).

Everything works fine if the player goes through the game at an expected sort of pace. But

clicking through scenes two, three and four, quickly jams everything up. Is there a kind soul

out there who would like to have a look?  Regards Harry

 function Invball(){                if(squareBump(inventory.x, inventory.y, 800, 80, ballclone.x, ballclone.y)){// The Rectangle collision                stage.removeChild(ball);                ballclone.addEventListener("pressmove",function(eve){                eve.currentTarget.x = eve.stageX;                eve.currentTarget.y = eve.stageY;                    });        ballclone.addEventListener("pressup",function snap(){                ballclone.x = 132;                ballclone.y = 570;            });                        stage.update();          }    }            createjs.Ticker.addEventListener("tick", Invball);
Link to comment
Share on other sites

  • 4 weeks later...

Hi thanks for replies.

 

I isolated the scenes so that one needed to be complete before going onto the next.

I'd finished the game by the time you guys saw the question.

Thanks for playing and for feedback. I'm encouraged to make my next game weird as well.

Link to comment
Share on other sites

  • 4 months later...

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...