Optimizations

Everything related to the code /
Tout ce qui touche au code
Post Reply
User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Optimizations

Post by zuzuf » Fri Aug 01, 2008 7:27 am

I've made some optimized functions for rotation matrixes :
RotateXYZ = RotateX * RotateY * RotateZ
RotateZYX = RotateZ * RotateY * RotateX
RotateXZY = RotateX * RotateZ * RotateY
RotateYZX = RotateY * RotateZ * RotateX

with those functions you need only 12 '*' and 4 '+' instead of 128 '*' and 96 '+' to compute those rotation matrixes :D

I made those optimizations because those functions where a bit too visible after some profiling on ta3d-bin :P
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests