Skip to content

Optimize quantize_vec_ue3#64

Open
VirxEC wants to merge 5 commits into
ZealanL:v3-rustfrom
VirxEC:impulse-fn
Open

Optimize quantize_vec_ue3#64
VirxEC wants to merge 5 commits 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 added 4 commits July 7, 2026 18:46
Move quantization into a RigidBody method and optimize the
quantize_vec_ue3 function for the Velocity branch. Remove the
unused mutator_config parameter from Ball::pre_tick_update.
- Restrict many modules and items from `pub` to `pub(super)` or private
- Move `Angle` from `linear_math::angle` to `shared::angle`
- Split `linear_math` into separate files
- Adjust imports throughout
Also replace chunks_exact with as_chunks in ConvexHullShape and
TriangleMesh, and use explicit glam camera functions in vis_renderer.
@VirxEC

VirxEC commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Ok, I reverted the add_impulse changes

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