quote:Original post by s9801758
I learned that lookup tables for sine and cosine are done with. They take an enormous cache hit, that slows your program more down then using the standard sin and cosine methods.
Jaap Suter
Whatever, man. It all depends how you do it. If you are simply using 360 floats, I don''t think that''ll translate into a enormous cache hit. If you are doing a million levels of precision, then yeah, you would probably run into problems. I''ve actually never really looked into how sin() cos() are implemented, but the only way that it would be faster than a small lookup table is if it was built into hardware, and even then I''m not sure how much faster it would be.