How can I drop frames intentionally to test safeguards?

Discussion and feedback on Construct 2

Post » Fri Apr 17, 2015 2:21 am

To preserve proper gameplay in the event of framerate jank, I've implemented various safeguards, such as movement stepping and all that jazz.

What's a good way to induce dropped frames in a controlled fashion, so I can test this? Ideally, I'd want to be able to say: If 'D' is Pressed: Drop the next 2 frames.

Then I can press 'D' before a critical moment in my game and see how well my game deals with it.

Any ideas?
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053

Post » Fri Apr 17, 2015 2:54 am

You could use the repeat condition with a very high number.
B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Fri Apr 17, 2015 6:50 am

fps wanks due to CPU or GPU choking. For CPU go with what Rojo said. For GFX i would use amped shaders
B
29
S
8
G
7
Posts: 643
Reputation: 6,482

Post » Fri Apr 17, 2015 7:40 am

Very cool. Thanks for the ideas guys!
Image
B
10
S
3
G
2
Posts: 196
Reputation: 2,053


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests