

just out of curiousity, does this game use a fixed timestep? this might be it, just a guess though
Bow_vernon {l Wrote}:Hi, does anyone else experience this issue? basically, this bug always happen, although the occurrence is quite random in a race (could be at the start, or in the last lap). The camera basically stutter up and down in a rather "jerky" movement
hiker {l Wrote}:Bow_vernon {l Wrote}:Hi, does anyone else experience this issue? basically, this bug always happen, although the occurrence is quite random in a race (could be at the start, or in the last lap). The camera basically stutter up and down in a rather "jerky" movement
While I agree with auria's statement, there is one point: you mentioned up and down, while the ticket is mostly about the camera moving forwards/backwards (which happens when the FPS varies, esp. when it is low). Is this what you see, or is it really an up/down movement (if so, could you perhaps post a video)?
Thanks!
Joerg
Auria {l Wrote}:I have not been able to really precisely track this, but for me, the FPS tends to be unequal. I suspect irrlicht is doing something once in a while so one frame in a while (about a second or two) is slower than other frames. This would exacerbate the camera issue
This is a basic problem of the camera implementation, it doesn't maintain a separate velocity for the camera, but kind of uses a weighted average of the camera and kart position. Now the weight depends on time step size, so if (for whatever reason) there is a significant slower frame, the camera will appear to move inconsistently
current_position += ((wanted_position.toIrrVector() - current_position) * m_position_speed) * dt;
Users browsing this forum: No registered users and 0 guests