Skip to content
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

Workaround for ULJS00218 until a more correct VFPU sin/cos implementation can be found. #13523

Closed
wants to merge 2 commits into from

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Oct 9, 2020

See issue #12900 for the broken game and rationale.

Basically we need a more accurate version of this function. This old one is probably actually slightly higher precision than what we're using now in other games.

JIT only for now.

@anr2me
Copy link
Collaborator

anr2me commented Oct 10, 2020

May not be related, just some possible condition on floating point:
https://www.appinf.com/download/FPIssues.pdf
https://floating-point-gui.de/errors/comparison/

Btw, you guys aren't making use Epsilon for these angle -= floorf(angle * 0.25f) * 4.f kind of things?

@hrydgard hrydgard force-pushed the hitman-reborn-workaround branch from 64795e5 to 238149d Compare October 10, 2020 07:55
@hrydgard
Copy link
Owner Author

#13526 seems like a more promising direction, closing.

@hrydgard hrydgard closed this Oct 10, 2020
@hrydgard hrydgard deleted the hitman-reborn-workaround branch October 10, 2020 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants