Open jfsiii opened 7 years ago
Yikes! Taking a look at what's going on.
I recorded a timeline while using it. Take a look I did the same counter-clockwise pattern for 8 clicks, then clicked "reset game" when it got slow.
The timeline records all the functions which are called while it's recording. I zoomed into one "round" of clicks. Then clicked the "Bottom Up" tab at the bottom of the page. This lists the functions which take the most amount of time.
log
and renderView
take the most amount of time.
Looking back at the timeline view I noticed something else. renderView
seemed to take longer each time:
Looking a little deeper, it looked like renderView
s time was really spent in log
So log
dominates your time and gets twice as slow each time it's called. That's a red flag. That's where I'd start.
Nice, thanks for grabbing that. I'll dig into those. Also good to learn how the Chrome dev tools work for debugging memory. This will be a good chance to dig into those. Thanks John!
You can also:
I think the experience is better locally. You can also click the "Screenshots" box and you'll see the state of the UI every few ms
The page crashes after only a few moves in Chrome stable (58.0.3029.110) on Mac.
See attached gif for example