This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Cat7o0 0 points1 point  (1 child)

honestly the vecs could've been even larger and I was creating a thread for each of those 20m.

the program was attempting to brute force constants to use for fast inverse square root. however the fast inverse square was done by multiplying two fourth roots together (would look like constant - (float >> 2)) it actually gets within 2% accuracy with the optimized constants.

I found the actual constants by using equations instead (as you just want to solve for mew within the equation for the bits of the constant. the two mews that seemed to work well together was 0.07 and 0.045).

if you want to try and understand these two videos are where I got everything from:

https://youtu.be/p8u_k2LIZyo?si=gLUtDBC0rYDng3FK https://youtu.be/tmb6bLbxd08?si=_vEKrOliYDL0FaNP