Reading the delta time

Discussion and feedback on Construct 2

Post » Wed Feb 26, 2014 8:30 am

Hello,

i'w set this little text box:
"DT: "& dt
on my project in order to see the delta time and i must say that it behaves a bit strange.
on my desktop (cca 58-60 fps) shows 0.016/0.015 but every second or so it peaks to some 0.03x
Can anyone explain me why is this?
(i use deltatime as a multiplier for my physics gravity so that slower devices have more gravitiy in order to run the game the same way).

Thanx!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Wed Feb 26, 2014 11:18 am

@Ashley

Ashley... can you please comment on this?
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Wed Feb 26, 2014 11:23 am

Probably just missed v-syncs. It's still correctly measuring delta-time.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506

Post » Wed Feb 26, 2014 4:04 pm

@Ashley

but since i use that number in my formula it's kinda troubling me...
is there a way to have more steady numbers?

tnx!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Thu Feb 27, 2014 12:38 pm

No, it is working correctly and if you are using it properly you'll still get a steady and smooth result.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506

Post » Thu Feb 27, 2014 4:05 pm

ok, thank you!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038


Return to Construct 2 General

Who is online

Users browsing this forum: kazdalugur and 11 guests