how using debug inspector

Get help using Construct 2

Post » Sun May 04, 2014 6:37 pm

Something cause very high cpu utilisation and i dont know where looking for this bug
My game have wery big layout 25k x 25k and very big tiled backgrounds but when spaceship dont moving everything is fine
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,426

Post » Sun May 04, 2014 6:43 pm

In the debugger there is something called "Profile" - next to "Inspect" and "Watch" on the right side. It will show you some % of things that makes CPU hard times.
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Sun May 04, 2014 6:58 pm

@shinkan draw calls show me many percent so its still large search field to find what cause high cpu usage (?)
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,426

Post » Sun May 04, 2014 7:00 pm

25kx25k layout is big, but it should not matter. question is how big and how many objects are you using?
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Sun May 04, 2014 7:03 pm

@shinkan in my game is max 125 objects in whole layout

Yeah i have 20 big sprites and very large tiled backgrounds (stars)

biggest sprite have 1500 x 1500 pixels
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,426

Post » Mon May 05, 2014 9:06 am

bump
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,426

Post » Tue May 06, 2014 10:54 pm

Hi Delgado,

This tut from @Ashley is a must read if you haven't done so already - it will completely change your approach as you design any game.

Happy constructing!
If it can be done, someone on the web will show you how to do it!

CDASI Games Mentality Break Splat-a-bug FlapFleet Challenge
B
35
S
13
G
7
Posts: 363
Reputation: 7,283


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, kainrazial and 8 guests