Name: C !X9l.ZOI87s 2010-02-07 15:59
Is there any way to make this faster? C# on the Xbox (XNA) - for those that don't know the CPUs are shitty PowerPC cores, and is slowwww.
toDraw = redBulletList.Count;
if (toDraw > 0)
{
Array.Resize(ref instanceTransforms, toDraw);
for (int i = 0; (i < toDraw && i < redBulletList.Count); i++)
{
instanceTransforms[i] = redBulletList[i].Transform;
}
redBulletInstance.DrawInstances(instanceTransforms, _viewMatrix, _projectionMatrix);
}
toDraw = redBulletList.Count;
if (toDraw > 0)
{
Array.Resize(ref instanceTransforms, toDraw);
for (int i = 0; (i < toDraw && i < redBulletList.Count); i++)
{
instanceTransforms[i] = redBulletList[i].Transform;
}
redBulletInstance.DrawInstances(instanceTransforms, _viewMatrix, _projectionMatrix);
}