Jump to content

Problems with memory/cpu leaks


ForgeableSum
 Share

Recommended Posts

I'm looking for advice on how to identify cpu/memory leaks. I've not had a lot of experience using the profiler in Google chrome. Experimenting with it, I've found it to be very unintuitive. For example, what is it measuring, memory or CPU? If it only measures memory usage, how can you check cpu usage?

 

Here's my problem: my game has this problem of spontaneously coming to a crawl apropos of nothing. It usually happens on page load. I will refresh the page and the framerate suddenly drops to 1-10. I try deleting literally every function in create and update but it still crawls when I refresh the page... it's literally crawling when there is nothing left but global variables and booting the game.

 

I've tried everything: stripping it down to a barebones version, reverting to older versions, flushing cache, switching webgl/canvas modes but it randomly hangs for no reason whatsoever. honestly i've never seen anything like it. 

 

In the JS profiler, I am seeing that the highest total % is from "program" which I take it is Google Chrome itself. If 75% of memory is Chrome, does that fall to reason that memory is not the problem? Is "program" different from "idle"? What does it mean if program is taking up 75%??! It could be a bad thing or it could be completely normal. 

 

 

Link to comment
Share on other sites

I've tried that plugin - unfortunately it show less information than Chrome's JS profiler. 

 

What I don't understand is how Chrome's profiler can be showing program or idle at 75% of self when the game's framerate is dipping below 10 fps... there must be some kind of tool which shows the total memory/cpu the tab has and the amount used, just like resource manager in mac or task manager in windows. Surely, there must be something out there.

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