Skip to content

Optimize quantize_vec_ue3#64

Open
VirxEC wants to merge 1 commit into
ZealanL:v3-rustfrom
VirxEC:impulse-fn
Open

Optimize quantize_vec_ue3#64
VirxEC wants to merge 1 commit into
ZealanL:v3-rustfrom
VirxEC:impulse-fn

Conversation

@VirxEC

@VirxEC VirxEC commented Jun 23, 2026

Copy link
Copy Markdown
Contributor
  • Refactor add_impulse to use const generics
  • Move quantization into a quantize.rs module
  • Optimize the quantize_vec_ue3 function's velocity branch (i benchmarked a measurable speed improvement)
  • Remove the unused mutator_config parameter from Ball::pre_tick_update.

@ZealanL

ZealanL commented Jul 7, 2026

Copy link
Copy Markdown
Owner

I do not like the add_impulse refactoring as it damages readability and likely gives no actual speedup due to compiler optimization... but I like the other changes!

@VirxEC

VirxEC commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Ok, I reverted the add_impulse changes

- Refactor add_impulse to use const generics
- Extract quantization into a separate module
- Reduce visibility and reorganize linear_math
- Reorganize imports across multiple files
- Switch add_impulse to runtime booleans
@VirxEC

VirxEC commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

rebased onto upstream. squashed all commits to make it easier.

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.

2 participants