How to make CFrame.fromMatrix() more efficient

I am trying to make this piece of code (below) run faster, but I have found out that the issue is due to the

My code

w1.Size =, Height, math.abs(ab:Dot(Back)))
w1.CFrame = CFrame.fromMatrix((a + b) / 2, Right, Up, Back)
w2.Size =, Height, math.abs(ac:Dot(Back)))
w2.CFrame = CFrame.fromMatrix((a + c) / 2, -Right, Up, -Back)

This is what this turns into with a little bit more code:

However, if I change my code to this, it runs way better. Even if I use (it doesn’t change the orientation properly, so I cant use it):

w1.Size =, Height, math.abs(ab:Dot(Back)))
--w1.CFrame = CFrame.fromMatrix((a + b) / 2, Right, Up, Back) --Both commented out(inactive)
w2.Size =, Height, math.abs(ac:Dot(Back)))
--w2.CFrame = CFrame.fromMatrix((a + c) / 2, -Right, Up, -Back) --Both commented out(inactive)

So what im wondering is how I would, or could, make it use less off my cpu. I have a beefy one aswell!

ignore the clicking of the keyboard. Forgot to mute my mic lol :roll_eyes: