Should we be multiplying by delta when modifying suspicion?

Currently, we increase suspicion by suspicion_step every frame that an NPC sees the player and decrease it by suspicion_dropoff every frame. Won’t this increase suspicion at different speeds on different speeds on faster and slower machines?

It seems like we need the suspicion_step and suspicion_dropoff to both be the desired change per second and to multiply by delta when applying them.


Good point - hadn’t spotted that one!

Privacy & Terms