Is it wise to use a text command each loop?

Blitz3D Forums/Blitz3D Beginners Area/Is it wise to use a text command each loop?

PoliteProgrammer(Posted 2007) [#1]
Hi. I'm just wondering about this since I seem to remember someone saying that text commands are quite slow.

Basically, I'm wondering if using a text command to display information, say on a HUD, is the most efficient way to do it?


chwaga(Posted 2007) [#2]
they arent slow! I've got them plastered all over my HUD on an easy 60 FPS


PoliteProgrammer(Posted 2007) [#3]
Great! That's my mind at ease then!

Thanks a lot


Yo! Wazzup?(Posted 2007) [#4]
Dunno how much faster it would be, but FastText is even faster and might help you.


Beaker(Posted 2007) [#5]
Text commands are slow! Use FastText or bitmap fonts (look at fontext in my sig).


Mortiis(Posted 2007) [#6]
I recommend juicyfonts. Default text command is dead slow...


chwaga(Posted 2007) [#7]
I don't notice anything


Yo! Wazzup?(Posted 2007) [#8]
Take this test for example:

oldtime=MilliSecs()
For i=1 To 100000
Print "Health: 22  Level: 7"
Next
newtime=MilliSecs()
time=newtime-oldtime
Print time
WaitKey()
End

Took 55676 millisecs on my system (tell me if my test is rigged :)

If you look at the thread I posted, people were reporting 2-3 ms for fasttext, 60ms for blitztext (something like that?)