Very slow debug mode (Inspect)

Discussion and feedback on Construct 2

Post » Wed Apr 13, 2016 3:53 pm

Hi. Just downloaded the latest update but when I preview in Debug mode the default Inspect tab is very slow (30 FPS with 50% CPU Load) but when I switch to profile or watch tabs I get 60 FPS with 1% CPU (in chrome). I used a warpripple effect on 3 small objects and only 2 sprites for a small testing project. Why is it so slow on Inspect tab?
B
53
S
16
G
6
Posts: 718
Reputation: 9,150

Post » Wed Apr 13, 2016 4:28 pm

because inspect tab checks for loads of variables that have to be refreshed each tick, therefore the slowdown doesn't happen because of number of objects / what you did on the scene, but because debugger has to update lots of values.

it's a good thing that you can add to watch variables that only you are interested into, and change tab, which then shows the real performance. ofcourse if you watch too many vars you can get the same slowdown on watch tab too :) i think best to check fps/cpu/etc is to create your own ingame debugger and debug with it, turnable by some letter / variable
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
41
S
14
G
12
Posts: 623
Reputation: 9,359

Post » Thu Apr 14, 2016 6:00 am

I just tried Edge and it runs much better there. I get about 55 FPS and 15% CPU load there and its just a little bit stuttering. But Chrome is unplayable in debugmode.
But I will use the watch tab for important variables. :)
B
53
S
16
G
6
Posts: 718
Reputation: 9,150

Post » Thu Apr 14, 2016 6:39 am

interesting, might be beause edge has a better JS engine currently (the best by performance at least as i've read online)
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
41
S
14
G
12
Posts: 623
Reputation: 9,359

Post » Thu Apr 14, 2016 6:42 am

@Bl4ckSh33p - Try using Nw.js for Construct 2 also has better performance.
Image



The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
55
S
17
G
90
Posts: 1,112
Reputation: 59,151

Post » Thu Apr 14, 2016 9:24 am

I would but I cant cause I publish it to Windows Store (Edge). I hope Multiplayer will work in Edge soon. :(
B
53
S
16
G
6
Posts: 718
Reputation: 9,150


Return to Construct 2 General

Who is online

Users browsing this forum: jefftrier, vikuserro and 8 guests