You don't need to "SetBuffer" every frame. Just once at the start is fine since you aren't changing it...
And I see that you ARE using the text command. If you remove those, does the program speed up?
And I see that you ARE using the text command. If you remove those, does the program speed up?