flipace

Occasional stutter - SoundJS, PhaserJS or my code?

Recommended Posts

Hey everyone,

 

first of all - thanks for PhaserJS. It's awesome and I love working with it.

 

I'm working on a game called rocklegend - which is available here:

http://rocklegend.org - currently to see the game you have to login. I created a user account for you guys to test:

 

Username and password: phaserjs

 

I optimized a few things such as the notes (only drawing a fixed amount of notes at the same time, so I have 20 notes and reuse these objects)...

 

But currently I can't find out why the game still feels laggy sometimes.

The notes are positioned within a Group Container and the containers y position ist updated in each update call according to the playback position of the played song.

 

I'm not sure if the problem is the sound library - I'm using SoundJS for the sounds - should i try lowlag maybe, or if it's my code that's not optimal...

 

You can find the concatenated version of the JS at http://rocklegend.org/games/note-highway/develop/player/build/game.cat.js

 

Any advice, hints, ideas are greatly appreciated!

Also, if you just have tips how I could try to debug this problem, that'd be great :)

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.