Thing position interpolation inconsistent between FP/TP

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Thing position interpolation inconsistent between FP/TP

Post by Nash »

Run attached example. Observe the floating model in front of you while moving the player's view angle and pitch.

- In first person, the model appears jittery and is "lagging behind" the actual player view.
- In third person chase camera, the model is firmly planted in front of the player relative to the player view.

Expected behavior: in first person, the model is firmly planted in front of the player view.
Attachments
sticky.pk3
(15.35 KiB) Downloaded 51 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Thing position interpolation inconsistent between FP/TP

Post by Graf Zahl »

Looks correct to me with today's build. What version did this problem occur in?
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Thing position interpolation inconsistent between FP/TP

Post by Nash »

It still looks wrong with GZDoom g3.3pre-437-ge702504. Are you sure you don't have capped framerate turned on? I'm playing with uncapped framerate and it's very obvious. Try swiping your mouse very fast to the left or right while in first person view. Notice how jittery the model is. But if you do the same action while in third person view, it's not jittery.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Thing position interpolation inconsistent between FP/TP

Post by Graf Zahl »

Capped frame rate is definitely off for me. The thing doesn't even move one pixel, regardless of what I do.

EDIT: I found the cause.
GZDoom allows to read mouse input per render frame if the update rate is high enough.

In that case I cannot help you because the player's camera position is no longer being interpolated between playsim frames but adjusted to the current mouse info in real time. But your model still only gets repositioned every 1/35 seconds per play tick.

This can be disabled by setting 'smooth_mouse' to true, and that's really the ONLY way your setup can possibly work ever. I have this variable enabled because my mouse got such a shitty update rate that otherwise the experience wouldn't be smooth anymore if mouse position was not interpolated between playsim frames.
Last edited by Graf Zahl on Wed Feb 28, 2018 8:36 am, edited 2 times in total.
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Thing position interpolation inconsistent between FP/TP

Post by Nash »

How odd! What else can I do to help you debug this? The model is definitely jittery for me only in first person.
Post Reply

Return to “Closed Bugs [GZDoom]”