[Suggestion] Perfomance tester

Discussion and feedback on Construct 2

Post » Tue Jul 02, 2013 4:48 pm

Don't know if its possible now, or even possible at all, but it could be great if there was a way to performance test individual events, functions etc. for CPU usage and maybe memory usage.

As sometimes you might create something and it seems to work fine, but it might have a fairly big impact on your program, because of some minor thing that you didn't think of. So it would be nice if you could test each event somehow and that way figure out if you made some stupid thing or see if you can optimize it somehow.

B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Tue Jul 02, 2013 4:50 pm

I would agree that a performance profiler would be awesome. There are some conditions in C2 that let you know these values (estimated memory usage, and something related to CPU) but a full-featured system is likely impossible due to the nature of HTML5.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Tue Jul 02, 2013 5:53 pm

+1 , i was thinking on this today (could be part of debugger set)
chrome for example can check how long each .js part is taking to complete(but you cant make alot out of it)

i guess it would be important to know what you want to profile and if its possible
i think in unity you can check how much overdraw there is in the scene by colorstrength,
others could be for example seeing just the collisionboxes..vtrix2013-07-03 04:55:07
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Tue Jul 02, 2013 11:24 pm

It depends if we test on Chrome, Firefox, iOS, Android, etc. based from their hardwares.


There are javascript and memory performance profilers in Chrome inspector (dev tools).
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Wed Jul 03, 2013 4:54 am

the debugger should stand alone not depending on browser, i think like a floating ui ontop of game, with info and checkboxes depending of what you want to see
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Wed Jul 03, 2013 1:10 pm

I was thinking about adding something like this to the debugger. It's probably not possible to measure individual events (since the overhead of measuring might end up being more than the time it took to run the event itself), but perhaps it could narrow it down to how much time spent in each event group.
Scirra Founder
B
399
S
236
G
89
Posts: 24,543
Reputation: 195,430

Post » Wed Jul 03, 2013 3:18 pm

@Ashley oh wow, something like that would be absolutely huge.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,699

Post » Wed Jul 03, 2013 7:49 pm

Could it be user definable with actions like it was in CC? In a few places I'm doing tricky stuff in one event in various parts of an event branch, and having to arrange things into a group just for profiling might not be practical as it would also profile the later parts of that branch as well as the need to rearrange code a bit to create a group just for it. Also, setting it to use groups wouldn't stop someone from profiling one event, anyway (one event can potentially be pretty intensive by itself). Perhaps it can just mention the limitations of the profiler, similarly to mentioning the limitations of how every 0.001 seconds won't actually run faster than the framerate?
Moderator
B
95
S
34
G
33
Posts: 3,007
Reputation: 27,876


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests