dethrace-labs / dethrace

Reverse engineering the 1997 game "Carmageddon"
https://twitter.com/dethrace_labs
GNU General Public License v3.0
823 stars 41 forks source link

Pedestrian animation flickering #129

Open dethrace-labs opened 2 years ago

dethrace-labs commented 2 years ago

Steps to repro:

In this scenario, the pedestrian flicks quickly between 2 actions - standing still and running away, causing the ped texture to flicker as it changes rapidly back and forth.

This behavior exists in the original game. However, at lower framerates it looks more acceptable. One possible fix is to only flip between actions once it has been more than X (50?) milliseconds since the last action change.

Relates to #118

dethrace-labs commented 2 years ago

A similar issue exists when chasing a regular running pedestrian - their animation frames flip too quickly at > 30fps causing ugly flickering