QW-Group/ezquake-source

BUG: Interpolation not working correctly for r_drawviewmodel 1 with vid_renderer 0

Closed this issue · 1 comments

ezQuake 3.6.4

Describe the bug
Interpolation of weapons animation is enabled by the user (r_lerpframes 1) but the 1st shot and keeping fire shows it's disabled in the code.
It starts working after some shots depending on the weapon.
Switching weapon while firing keeps interpolation enabled.
SNG interpolation works from the beginning with gl_nailtrail 1.
RL=1shot ; GL=4shots ; SNG=1sec ; LG=disabled, never works

To see that LG interpolation is always disabled:

  1. bind 1 "r_lerpframes 1" ; bind 2 "r_lerpframes 0"
  2. Shoot and alternate key presses 1 and 2. Animation always choppy.
  3. vid_renderer 1 ; vid_restart ; do step two ; Animation now works.

Expected behavior
Interpolate weapons from the beginning, like vid_renderer 1.

Seems there are a few variables that I never found before because they weren't being saved into config and solves the issue:
gl_program_aliasmodels (solved)
gl_program_hud
gl_program_sky
gl_program_sprites
gl_program_turbsurfaces
gl_program_world