-
Notifications
You must be signed in to change notification settings - Fork 277
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: allow elevator misalignment #3181
fix: allow elevator misalignment #3181
Conversation
c1e270d
to
a75eba9
Compare
In your 133 loc example, from what I can tell from the atrocious mobile UI, the compiler does inline the functions. It just does not eliminate functions themselves because they're not TLDR: It is ok to have call overhead if you don't have a specific reason to avoid it. |
you're right, it's probably not worth it, as these functions aren't called in hot loop. EDIT: C++ made same optimization (99loc) after adding anonymous namespace ( |
a75eba9
to
3c4d494
Compare
Unrelated I hope? |
_rust itertools interop when_ see: cataclysmbnteam#3181 (comment) Co-authored-by: olanti-p <[email protected]>
3c4d494
to
57fcb7f
Compare
@chaosvolt i think this one is ready too |
Summary
SUMMARY: Bugfixes "Fix misaligned elevator not working due to misalignment"
Purpose of change
elevator misalignment was making elevator control not working.
Describe the solution
3. inlined functions 'cause godbolt results told me they were more efficientno inline (133 loc) vs inline (99 loc)Tests
2023-09-19_22-56-01.mp4