-
Notifications
You must be signed in to change notification settings - Fork 45
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
BetterFPS breaks elytras #375
Comments
Oh dang, it's BetterFPS causing this? |
Hey uhm, if i was a Modpack Maker, what config would you recommend for BetterFPS regarding sin/cos algorithm to keep the optimizations and not screw up the everything? That Table shows quite a lot of options, but without much info on what they actually are, so I wouldn't know what to choose. |
I would recommend not using BetterFPS at all since it's clearly not safe. I'm also unsure how much of a performance concern trigonometry functions are in the first place, vanilla uses a lookup table which seems pretty optimal. The tester you get when you run the jar seems pretty useless too, it keeps giving very different results and uses reflection to invoke the methods to be tested for some reason. If someone really wanted to experiment with it, well, By the way, the implementations of all the different algorithms can be checked here. |
Thanks for the comprehensive breakdown, I'll pin this for clarification |
I may be willing to give some workaround that throws a warning in the chat if someone is using BetterFPS with the bad trig injections, if possible. I think it's ideal to warn people since god knows what else this The question is; how to detect it? Perhaps I could "prime" the sin/cos functionalities with an intentionally weird value during startup that looking up with the elytra produces, and if a bad value is found, disable elytra flight and warn user? |
From the looks of it you can just check |
What would be a good way to get this through reflection so I don't need to add it as a jar dep? I can check BetterFPS source later, but rn I'm busy so may as well ask here |
|
Ok. When does |
Upon further testing, |
The LoadComplete event gets dispatched inside
|
Despite the code there which I saw, I loaded BetterFPS into an instance and it generated with the |
Blocked elytra functionality when |
Turns out Taylor just has the spinning issue in general, lol, and appears to be far more problematic. I'm gonna post a PSA on Legacy Modding that BetterFPS shouldn't be used at all |
Please check any boxes that apply to you and your issue
I use a translator application to post this issue.
This is a crash. Please upload, Pastebin, Gist or copypaste the whole crash report along with this issue.
This is a mod incompatibility. If I do this in vanilla Forge with only Et Futurum Requiem installed, it works normally.
Version number of Et-Futurum-Requiem (IMPORTANT)
2.4.6, 2.5.1
Describe the issue (IMPORTANT)
If you look straight upwards while gliding with an elytra, you will seemingly fall through the ground. Running a
/tp
command with relative coordinates at this point will fail with the message'NaN' is not a valid number.
. After relogging, your X and Z coordinates will be NaN, effectively bricking your save.Edit:
/tp
commands with absolute coordinates can still be used to recover yourself, but doing anything after relogging is made difficult by the framerate being extremely low due to constant LWJGL error spam.elytra_bug.mp4
Mod list (OPTIONAL)
Additional Context (OPTIONAL)
BetterFPS replaces the implementations of
MathHelper#sin
andMathHelper#cos
with ones that may produce different results.After some brief testing, I observed the following results when landing while looking straight up:
rivens-half
(default)java
libgdx
rivens-full
rivens
taylors
vanilla
The text was updated successfully, but these errors were encountered: