Thanks spooky. That helped me figure out the speed issue. It took a few more variables and IF statements but now my function is just as fast as using the "Text" command by iteself.
If anyone wants the function here it is:
Make Object Cube 1,30
Do
Yrotate Object 1, Object Angle Y ( 1 ) + 1
db_text(0, 0, "FPS = " + str$ (Screen Fps()), "Arial", 16, 2, 0, 0)
db_text(0, 15, "Line 2", "Arial", 16, 2, 0, 0)
db_text(0, 30, "Line 3", "Arial", 16, 2, 0, 0)
db_text(0, 45, "Line 4", "Arial", 16, 2, 0, 0)
db_text(0, 60, "Line 5", "Arial", 16, 2, 0, 0)
db_text(0, 75, "Line 6", "Arial", 16, 2, 0, 0)
Loop
Function db_text(varx, vary, vartext$, varfont$, varsize, varstyle, varcenter, varuseold)
If varuseold <> 1
varoldfont$ = Text Font$()
varoldsize = Text Size()
varoldstyle = Text Style()
If varoldfont$ <> varfont$
Set Text Font varfont$
Endif
If varoldsize <> varsize
Set Text Size varsize
Endif
Select varstyle
Case 1
If varoldstyle <> 0
Set Text To Normal
Endif
Endcase
Case 2
If varoldstyle <> 2
Set Text To Bold
Endif
Endcase
Case 3
If varoldstyle <> 1
Set Text To Italic
Endif
Endcase
Case 4
If varoldstyle <> 3
Set Text To BoldItalic
Endif
Endcase
Case Default
If varoldstyle <> 0
Set Text To Normal
Endif
Endcase
Endselect
Endif
If varcenter = 1
Center Text varx, vary, vartext$
Else
Text varx, vary, vartext$
Endif
Endfunction