I think I need to make an indices buffer, but I have no clue how to pass my vertex buffer to it. When I'm drawing the cubes, I'll be drawing from the indices list so hopefully it'll make the fps jump
I changed the class to this so the vb is only being called once but nothing changed
public void setVB()
{
device.SetVertexBuffer(cubeVertexBuffer);
}
public void Draw(BasicEffect effect)
{
setVB();
foreach (EffectPass pass in effect.CurrentTechnique.Passes)
{
pass.Apply();
device.DrawPrimitives(PrimitiveType.TriangleList, 0, cubeVertexBuffer.VertexCount / 3);
}
}

Find content
Not Telling