Fixed framerate problem/bug?

For questions about using Classic.

Post » Mon Apr 27, 2009 11:13 am

So i've been using fixed framerate mode for one of my games (i want it pixel perfect: don't go all timedelta on my arse :mrgreen: ) and it's working well except for a small problem... When the framerate drops the game slows down as expected, but then once the lag stops, the game appears to run faster in an attempt to "catch up" to the point it would have been if the slowdown had not occurred(which often results in player death due to a massive game speed boost). Is this how fixed framerate is supposed to work, or is it a bug?
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Apr 28, 2009 2:19 am

Excuse the double post, but i would very much like an answer to this, it's been on my mind for some time now.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Apr 28, 2009 3:42 am

I'm sorry Davio, I would answer if I knew the answer :oops:
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Apr 28, 2009 2:21 pm

I think it's a bug, can you add it to the tracker?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Tue Apr 28, 2009 6:35 pm

sure thing Ash.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Apr 28, 2009 7:29 pm

uploaded a cap to demonstrate problem.
http://dl.getdropbox.com/u/1010927/Fixe ... ateBUG.cap
also placed this cap on the tracker, in the report i made.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Tue Apr 28, 2009 8:34 pm

Set your mode to VSync, then set "Minimum FPS" to 60 and keep the "Override TimeDelta" box checked and the problem goes away. It has the same effect you're looking for (game slows down for pixel precision) but the speed-up at the end of the lag goes away.

Plus, I think VSync is supposed to be the right way to do games or something because of tearing and stuff, but I'm not entirely sure that's a problem if you're manually overriding timedelta. Anyway, it doesn't look like it works with fixed, so there's a way to fix your fixed and make it act fixed even though fixed isn't fixed yet.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Apr 28, 2009 9:15 pm

Thanks deadeye, I didn't think about the minimum fps with override timedelta still checked approach. I'm just wondering how it will play on different computers. Plus, since i dont use timedelta in my code (because its for a fixed rate), i'm wondering how the game will play on pc's with a higher rate than 60.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Apr 28, 2009 9:51 pm

Hmm, not sure. I didn't think about that :P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Apr 29, 2009 1:18 am

lol oops, posted my on brothers account. So yea the whole point of fixed framerate is that you have pixel perfect precision which runs at the same speed on every pc.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests