NVIDIA / Q2RTX

NVIDIA’s implementation of RTX ray-tracing in Quake II
Other
1.22k stars 181 forks source link

Don't special handle RF_FRAMELERP on the client. #352

Closed res2k closed 11 months ago

res2k commented 11 months ago

Purpose of this flag is unknown. It doesn't seem to do anything useful. Effectively, it just disables entity origin interpolation in CL_AddPacketEntities(), and requires the renderer to do interpolation instead. Use of RF_FRAMELERP also requires old_origin to be always valid. While Q2PRO server guarantees this, other servers may not.

RF_FRAMELERP is actually harmful: because lerp_origin is stepped discretely, effects like particle trails look odd on RF_FRAMELERP entities. Also, since Q2PRO renderer only interpolates origin if RF_FRAMELERP is set, interpolation of linked entities with this flag cleared is broken.

Simply remove special handling of RF_FRAMELERP from client and renderer.

Fixes choppy enemy movement in GL renderer, introduced by 5e2a2d30e8d2101e272a14eff4f93281230aed4f.