How do I check if it's events or graphics fault

Get help using Construct 2

Post » Sun Apr 22, 2012 5:54 pm

...that my framerate is low? remember? there was something like graphic card waiting on processor or something like that, back in the construct classic times. how can I make something similar in C2?

also, there seems to be something wrong with delta time. if i make:
[code]on Sprite created: custom movement: accelerate 100 at angle 90
every tick: custom movement: accelerate 1000 * dt vertically
[/code]this behaves totally different depending of framerate (or device actually, as i got higher fps on desktop machine and lower on android)
ranma2012-04-22 17:55:00
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Sun Apr 22, 2012 7:40 pm

Scroll your game somewhere where there is nothing visible on screen at all (maybe make some custom events to do this). If the game speeds up, it's rendering. If it doesn't, it's events.

Not sure what's wrong with your dt movement, maybe share a .capx?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Sun Apr 22, 2012 9:25 pm

http://dl.dropbox.com/u/59009902/wat.capx
actually try to just preview it couple of times, every time you touch screen, the black box will appear and behave differently almost every time, despite the same event. so i think this is not only related to framerate.

hope that helps.
B
81
S
50
G
10
Posts: 555
Reputation: 13,009

Post » Mon Apr 23, 2012 10:00 am

[QUOTE=Ashley] Scroll your game somewhere where there is nothing visible on screen at all (maybe make some custom events to do this). If the game speeds up, it's rendering. If it doesn't, it's events.[/QUOTE]
well, game runs at around 15fps when scrolled outside view, so I believe it's in events, but are you sure that offscreen drawing doesnt affect speed? is there really a difference if the sprites are drawn on or off screen?

cheers and thanks for the help
B
81
S
50
G
10
Posts: 555
Reputation: 13,009


Return to How do I....?

Who is online

Users browsing this forum: blackhornet and 5 guests