DrChat / Gmod-vphysics

Replacement vphysics module for the Source engine (originally meant for Garry's Mod)
Other
93 stars 15 forks source link

Tickrate affects the physics timesteps #24

Closed kklouzal closed 10 years ago

kklouzal commented 10 years ago

A spawned prop's initial gravity and/or weight is incorrect and/or is 'slow' as in it feels like the prop is located on the moon.

DrChat commented 10 years ago

Doesn't act like that for me! Is this related to the drag controller?

kklouzal commented 10 years ago

Unfortunately I cannot say one way or another what this is related to, using the module in single player this happens to some extent but not nearly as drastic as it is on the dedicated server. Props just don't feel like they have the correct weight and/or gravity. :/

kklouzal commented 10 years ago

I did a lot of debugging and figured out that it was the use of the launch parameter "-tickrate 33" that makes the physics feel like your "on the moon". Returning the tickrate to 66 made the physics act normal again. The ability to set the tickrate to 33 and even 16 in some scenarios is highly beneficial due to the fact that it cuts down immensely on CPU and bandwidth usage.

DrChat commented 10 years ago

Okay, so the timescale slows down. Does valve's vphysics do this?

kklouzal commented 10 years ago

No sir not at all.

DrChat commented 10 years ago

8 months to update this issue isn't too long of a wait... right?

Anyways, most likely fixed in 16396ce485a07e95e9b56b42fc03e72ad6b5d35f. Closed.