Eggs-D-Studios / wos-issues

Waste of Space bugs, suggestions, and other feedback
6 stars 0 forks source link

Reduce CFrame size in compiler by 12 bytes. #128

Open ArvidSilverlock opened 1 month ago

ArvidSilverlock commented 1 month ago

Guidelines

Version

Development (Unstable)

Topic

A programming feature (e.g. APIs, tweaks, changes, etc)

Why are you making your suggestion?

It will further optimize the size of unstable compilation with a minor loss of precision (a loss in the range of 2e-7 degrees most oft).

What do you propose? What should change, or what should be added?

Rather than storing the XVector and YVector instead use ToAxisAngle and store the Axis and Angle as a single vector, where the vector is the Axis * Angle, you can retrieve the angle through .Unit and .Magnitude as the Axis is a unit vector.

someoneidoknow commented 1 month ago

im not sure hexcede wants to dump precision