Jump to content

can anyone help me with performance?


Nokdu
 Share

Recommended Posts

I've included a really simple game 

 

the game is basically.. don't get hit by the potions..

 

but atm i am getting frame rate spikes.

 

i have no idea what is causing it..

 

i am currently using chrome and my PC is a pc that i use to develope other 3d C++ games.

 

i've tried a few inspectors.. but i am not really getting anywhere.

 

any help would be nice

 

thank you

rpg.zip

 

for all who want to see the code.. here it is

 

https://gist.github.com/thinkong/8802753

Link to comment
Share on other sites

I don't see anything problematic with the gist - we probably need more information to help. when you say "frame rate spikes", what does that mean specifically? from 60(?) fps down to ??? and how often? do they happen on a regular basis or seemingly random?

 

have you done a memory profile to see if there are objects being allocated and released during gameplay? (garbage collection is a common reason for performance spikes)

Link to comment
Share on other sites

I don't see anything problematic with the gist - we probably need more information to help. when you say "frame rate spikes", what does that mean specifically? from 60(?) fps down to ??? and how often? do they happen on a regular basis or seemingly random?

 

have you done a memory profile to see if there are objects being allocated and released during gameplay? (garbage collection is a common reason for performance spikes)

 

i am getting rates down to around 30 fps.. makes the game feel like laggy.. I thought they were due to GC stuff but they come at random times.. 

 

oh well.. i guess i'll have to do some more profiling :D

 

thank you for the quick answer

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