How do I define why my is slow?

Get help using Construct 2

Post » Thu Sep 15, 2016 8:23 am

Message: Petr Gromov can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello!

I have published my platformer. It is in scratch mode, however I have faced bug with it.

It is strange. My game starts to "freeze" and becomes slow since the half of the level.

In the end one second lasts for 3. It creates really bad experience.

http://tinyurl.com/zb235t7



C2 shows it is 17 MB in download, uses 99MB of Memory and has 245 Events

How can I find the "slow" part and fix it?

Thank you.
B
3
Posts: 7
Reputation: 189

Post » Thu Sep 15, 2016 9:14 am

Have you tried using the Profiler in the Debugger? If you've grouped your code, it's very easy to find offending chunks.
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306

Post » Thu Sep 15, 2016 9:58 am

When I start game with the debugger - it works very slow since the beginning ))
B
3
Posts: 7
Reputation: 189

Post » Thu Sep 15, 2016 4:44 pm

In the top-right of the debugger panel you'll see 'Watch' and 'Profile' - click Profile. For a start it'll run faster when in Profiling mode - and it'll give you feedback on what part of the code is using what % of CPU cycles.
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 22 guests