GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Improved BitStream writeQuat/readQuat methods. #2277

Closed OTHGMars closed 6 years ago

OTHGMars commented 6 years ago

Replaces the writeQuat/readQuat implementations with one that utilizes smallest three compression. I had intended to PR this as two additional methods for the BitStream class as shown here, but after seeing how the stock methods performed in a direct comparison, figured this would be a better approach. If anyone would prefer to see it PRed as additional methods, leave a comment below.