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

convert elevation map to a compile-time value instead of lazy #555

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

knickish
Copy link

TITLE - Convert elevation map to a compile-time value instead of lazily initialized value

Status

  • Ready
  • Development
  • Hold

Description

Converts the elevation weight map to use soft floats. This ensures that map is the same on all architectures as hardware specific floating point quirks are ignored, and allows it to be computed at compile time. A test is included with the old code to show that the result is unchanged.

Related issues

Leave empty if none

Checklist

  • Ran cargo fmt, cargo clippy --all-targets, cargo build --release and cargo test and fixed any generated errors!
  • Removed unnecessary commented out code
  • Used specific traces (if you trace actions please specify the cause i.e. the player)

Note: if you locally don't get any errors, but GitHub Actions fails (especially at clippy) you might want to check your rust toolchain version. You can then feel free to fix these warnings/errors in your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant