New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix aircraft jittering #20841
Fix aircraft jittering #20841
Conversation
I'm not a huge fan of this approach. It would be a lot cleaner if |
How would that work? |
There is no need to have the underlying facing (with a 1/1024 resolution) varying by +/- 1 between ticks. The hysteresis can be applied there and/or hook up with |
Badger.mp4That doesn't eliminate jitter completely. There's a reason why it needs to jitter, and applying hysteresis at that level won't fix it |
I'm personally not convinced (and what about the mismatch between the sprite and contrail/weapon positions which are controlled by |
Those sound like major issues. |
Contrail works correctly, as for weapon offsets it seems they are using the raw IFacing interface |
I localised the jitter prevention inside Fly activity. With a deadzone of 2 there's very little jitter, to a point that if you aren't playing attention you are not likely to notice. |
IMO it would make sense to expose the 2 value on |
What's the benefit to exposing it? I could make the range a const |
Mods have different amounts of facings for their aircraft. I would welcome a configuration option for @OpenHV. It also avoids a magic number. |
Closes #4824
For context, the fact the facing can jitter is expected and intentional. What we want to prevent is visual jitter, and here we fix it by not acting on facing discrepancy if the difference between the current and desired facing is below angle 2