I have a game that has lag after some time but when I profile it in Chrome as (Tree - top down) has (Totals):
- ~89%: (idle) - I don't know what is it.
- ~ 3%: (program) - I think is the interface of my app, chrome and with the OS;
- 1.2%: (garbage collector)
- 6.6%: game loop function
The frame rate is around 8-10 and it gets down to 0 fps. The CPU also is around 50% used.
My question is what is going on? I think idle means that is "free time" for cpu, but I'm wrong.
Can anyone explain to me what exactly is idle, as in google doesnt specify it in their docs (https://developers.google.com/search/results?q=idle&p=%2Fchrome-developer-tools)?
Also memory consumption might be a problem, in this case my game is leaking.