My Life as a Spy

by Skysaw
My Life as a Spy
Five teams of spies compete to secure documents, using nifty spy gadgets to foil their enemies.
ID:2114212
 


Testing out the new keyboard handling code and movement system, working at 40FPS now instead of 30, 30 got jumpy for some reason even locally but 40 is smooth even over the network.
30 got jumpy for some reason even locally but 40 is smooth even over the network.

1000/30 = 33.3333333

TL;DR: DM struggles with unclean tick frequencies and rounds up world.tick_lag to compensate:

world/fps = 60
world/New()
world << "[world.fps] [world.tick_lag]"


Until recently, world.fps would return 63 in this situation and world.tick_lag would be 1.7 instead of 1.66666666 as it should have been.

40 fps has a very clean result and is less jumpy... Oddly.
Yeah, I expected 30 to be smooth because it's kind of a standard FPS for 2D games and the sort and was thrown off when changing it to 40 fixed all the jumpiness.
Yep. It's why I've been ranting about 40fps for a few years now.
Regardless, that's some smooth ass movement I have going on there for it not being pixel movement (I enabled that at one point and it was a car wreck)