Jump to content

How to find the reason for browser freeze?


naveen
 Share

Recommended Posts

Does the game freeze totally or temporary? Which browser are you using? If totally - check the code, 100% sure it's the source of the perma-freeze.

If temporary... Check the code, but that might not be the reason.

There's some weird thing or bug with ie, firefox, the game can randomly freeze for like less than 50ms and the unfreeze. Happens totally random, even on a blank project and doesn't depend on fps, fps can still be 60/60. Still investigating this...

Link to comment
Share on other sites

Just pause the javascript in Chrome devtools and manually step through the code, probably there is an infinite loop.

I think it is due to infinite loop.

 

In all my while loops, I used break statements followed by a message if it repeats for more than 10 times. It is printing message.

 

thank you all for the suggestions.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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