Use stdlib for trigonometric functions
Profiling showed this performed significantly faster than the RageFast_ implementations.
This commit is contained in:
+2
-2
@@ -255,8 +255,8 @@ void RageDisplay::DrawCircleInternal( const RageSpriteVertex &p, float radius )
|
||||
for(int i = 0; i < subdivisions+1; ++i)
|
||||
{
|
||||
const float fRotation = float(i) / subdivisions * 2*PI;
|
||||
const float fX = RageFastCos(fRotation) * radius;
|
||||
const float fY = -RageFastSin(fRotation) * radius;
|
||||
const float fX = std::cos(fRotation) * radius;
|
||||
const float fY = -std::sin(fRotation) * radius;
|
||||
v[1+i] = v[0];
|
||||
v[1+i].p.x += fX;
|
||||
v[1+i].p.y += fY;
|
||||
|
||||
Reference in New Issue
Block a user