Description

This is a series of scripts to help you unlock your framerate by implementing the ideas and solutions as presented by Glenn Fiedler at http://gafferongames.com/game-physics/fix-your-timestep/

This is an alternative to the more popular variable delta time solution when dealing with things like physics which can be a headache. Both approaches have their pros and cons. Due to the fact that GameMaker Studio 2 does not have a separate thread for render / update this solution can occasionally cause jitteriness if your game is not stable. The upside to this approach is you don't have to do any additional math in your physics to compensate for lag or to allow your users to choose thier preferred frame rate.

In general you should just make your game in GameMaker and not worry about timesteps. But if you must here's a solution.

Download the EXE to see how it performs! Press F1 to toggle the room speed. Notice no matter what the room_speed is the physics are the same.

http://www.kyleaskew.com/timestep.zip

End User Licence Agreement (EULA).

Version 1.0.2. Published March 29, 2017

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Total size 264 KB

assetpackage.yy 3.82 KB objects rooms scripts sprites
spr_extra
03b68c73-c492-4b0b-a703-34e4503925bf.png 2.02 KB 18191539-a6df-44fb-8cef-65c99e6abd93.png 2.06 KB 2275a608-d034-4138-a9a7-f0c440388b74.png 2.02 KB 36b3f8ce-b668-4753-8437-179c3b97db42.png 2.02 KB 3d506b79-1a5f-4b49-b010-ec33180f8842.png 2.06 KB 4a987e3b-fd6b-46ca-b771-899f4736eb24.png 2.09 KB 524e2737-3b3c-40e1-9ca8-f3676c198af5.png 2.02 KB 654cfc17-41ca-4c32-8685-4c266765149b.png 2.05 KB 93b5804d-8e2f-4a8a-bca9-6da084be7aa2.png 2.06 KB 93ff607e-1940-4f9b-9832-0f94de19ba01.png 2.04 KB cd76fde0-cb4f-49ed-9082-7b11fd01ac7e.png 2.04 KB d5278efe-7899-4c5c-8be9-cff286e76769.png 1.98 KB e233c9ec-7e39-48de-8533-436790055e3f.png 2.01 KB ebf8e3b9-a50b-430c-bf12-6838b133f68a.png 2 KB ef19cb8c-e31c-44b6-ab3c-d881626859ef.png 2 KB fb8370ec-3e2a-4241-b57e-8072f74c375b.png 2.02 KB spr_extra.yy 15.3 KB layers
spr_idle
1f7c8b09-4a06-475f-8568-b8d66f82afa1.png 1.84 KB 1f89df15-24ef-41fd-9595-5c886720c0f6.png 1.86 KB 2bcc4c14-625d-4714-906b-46eece368ef0.png 1.86 KB 408af3e9-a34e-43cd-a9c6-643af8a0c6b0.png 1.82 KB 47a7f3db-7163-40ce-a36d-4053b11d6a6a.png 1.85 KB 5aa18671-385e-4d49-a6b1-3c46ec9bd8bc.png 1.84 KB 606e4afd-a3e1-4cea-9675-9589a6b40f0a.png 1.86 KB 62be1cf8-17cc-4ad6-ac54-1838b46311eb.png 1.86 KB 6b08eab0-bf40-4678-8078-ff353d3c1b8a.png 1.84 KB 792ab6f8-9c4d-4a07-84e0-f9ac8659e4e0.png 1.84 KB 84824efb-5ee4-4f6c-895a-a469199fc030.png 1.86 KB 908fb946-2200-4d80-9e0c-90add40f531e.png 1.85 KB 9a892de7-650a-4c46-b71d-343b9fd77c35.png 1.86 KB afad036b-9a45-467f-af89-e2b3a0c2039c.png 1.85 KB b46b809c-c0cc-4f47-bc12-e66d7f6a6085.png 1.86 KB bc6a3f45-5d59-4183-b896-49bf937f8ab5.png 1.86 KB c2fedcdf-92e2-4b32-abc6-4268d9cea3d8.png 1.84 KB c9e68a0e-9bc9-4bfa-9f7a-548706f36eaf.png 1.84 KB e3c6a742-40c8-4137-b5a1-1c61d665d092.png 1.86 KB e9e6b39e-952b-477b-b04a-e44a63065efd.png 1.84 KB spr_idle.yy 18.9 KB layers
1f7c8b09-4a06-475f-8568-b8d66f82afa1 1f89df15-24ef-41fd-9595-5c886720c0f6 2bcc4c14-625d-4714-906b-46eece368ef0 408af3e9-a34e-43cd-a9c6-643af8a0c6b0 47a7f3db-7163-40ce-a36d-4053b11d6a6a 5aa18671-385e-4d49-a6b1-3c46ec9bd8bc 606e4afd-a3e1-4cea-9675-9589a6b40f0a 62be1cf8-17cc-4ad6-ac54-1838b46311eb 6b08eab0-bf40-4678-8078-ff353d3c1b8a 792ab6f8-9c4d-4a07-84e0-f9ac8659e4e0 84824efb-5ee4-4f6c-895a-a469199fc030 908fb946-2200-4d80-9e0c-90add40f531e 9a892de7-650a-4c46-b71d-343b9fd77c35 afad036b-9a45-467f-af89-e2b3a0c2039c b46b809c-c0cc-4f47-bc12-e66d7f6a6085 bc6a3f45-5d59-4183-b896-49bf937f8ab5 c2fedcdf-92e2-4b32-abc6-4268d9cea3d8 c9e68a0e-9bc9-4bfa-9f7a-548706f36eaf e3c6a742-40c8-4137-b5a1-1c61d665d092 e9e6b39e-952b-477b-b04a-e44a63065efd
spr_ts_main
f50a99e2-0ff0-4613-a60d-25a360a76f08.png 95.9 KB spr_ts_main.yy 1.93 KB layers
spr_walk
tilesets

What is the issue?

Back to Top