Probably the biggest problem and set-back in Spherack Reloaded’s progress so far is the amount of lag that occurs while playing online with multiple players. Tons of information processing contributes to a significant drop in frames-per-second and the game becomes basically unplayable. However, after thinking for a bit, the idea hit me. What if I could make the game run a few calculations to adjust the speeds of objects to how they’ll normally appear at a full FPS? Simple really, all I had to do was divide the max FPS of the room by the current FPS. Looks like this:
speed = 5*(60/fps)
In the above scenario, 5 is the current speed of the object, 60 is the maximum frame-rate of the room (adjust to match yours or you’ll have weird results) and fps is the current FPS.
Seems to be working fine for me so far.