sourencho / ungroup_game

A multiplayer game about temporary alliances written with a custom engine in C++ and SFML
13 stars 1 forks source link

Chasing camera draft #190

Closed sourencho closed 4 years ago

sourencho commented 4 years ago

Description

Fixes

Fixes #X

sourencho commented 4 years ago

The camera is making the player's group look very jittery and I'm not sure why

I'm not sure if this is the cause but seems like the update_time is not stable. We take two MIN_TIME_STEPs occasionally. Notice the 32s from the std::out of this change that logs update_time:

16
16
16
32
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
32
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
32
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16
16

It's hard to see the jitter in this gif but figured I'd post anyways: chasing_camera