Replace RageFastSin and RageFastCos with standard library versions because the standard library is faster. Use fmod in spline evaluation.
This commit is contained in:
@@ -51,8 +51,8 @@ public:
|
||||
for( int i = 0; i < iSubdivisions+1; ++i )
|
||||
{
|
||||
const float fRotation = float(i) / iSubdivisions * 2*PI;
|
||||
const float fX = RageFastCos(fRotation) * fRadius;
|
||||
const float fY = -RageFastSin(fRotation) * fRadius;
|
||||
const float fX = std::cos(fRotation) * fRadius;
|
||||
const float fY = -std::sin(fRotation) * fRadius;
|
||||
pVerts[1+i] = v;
|
||||
pVerts[1+i].p.x += fX;
|
||||
pVerts[1+i].p.y += fY;
|
||||
|
||||
Reference in New Issue
Block a user