crazy2be / buildblast

Build a base, shoot intruders
MIT License
5 stars 1 forks source link

Need to fix large timestep behavior. #91

Open crazy2be opened 11 years ago

crazy2be commented 11 years ago

Our behaviour when the client is lagging (or just time-synced) and thus giving us very large simulation dts is quite bad, and can actually allow you to walk through walls (with sufficient lag). Rather than capping at 1s, we should probably opt instead to run ten movement simulations, each one 0.1s long (or something).

This also causes annoying console spam.

This is aggravated by no gradual application of ntp-sync packets.

crazy2be commented 11 years ago

(see #67 re that last point)

crazy2be commented 11 years ago

We may want to consider fixing our timesteps to counteract this: http://gafferongames.com/game-physics/fix-your-timestep/

yeerkkiller1 commented 11 years ago

We really just need to do our collision detection continuously, it would be faster anyway.

crazy2be commented 10 years ago

I'm not sure about that, that would require a pretty substantial overhaul of how things work. It also sees like it would be a really hard problem to solve generally, which is probably why like no other physics engine does it.

crazy2be commented 10 years ago

Although if you really want to attempt that feel free :P.