Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Dark Basic Pro chokes on a simple command

Author
Message
TRS80Model1
22
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 7th Mar 2003 23:50
Can someone tell my why it takes 40 milliseconds to convert from one text size to another.
Sample:
do
set text size 15
text 0,0,"small"
set text size 24
text 0,20,"BIG"
loop

now for the first 15 seconds or so this loop takes 40 millseconds to complete and eventually it will settle at 15 milliseconds which is how long it takes my engine to loop through everything it checks for 60 whole times.

Doesn't make any sense to me at all.
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 8th Mar 2003 00:17
The SET TEXT SIZE command is very slow and there is a good reason for it, if my understanding of how text works in DBP is correct.

Text in DBP IIRC is basically a texture on top on an invisible z-depth disabled plane. Hence when changing text size DBP has to recalculate everything.

This may not be correct, just an observation

Current Project: Retro Compo. Entry.
TRS80Model1
22
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 8th Mar 2003 00:36
thanks, just means I gotta make sprites for my letters and numbers also.
the architect
22
Years of Service
User Offline
Joined: 6th Jan 2003
Location: United Kingdom
Posted: 9th Mar 2003 03:07
to keep it simpla try using the CHR$ equivelent to your sprite

val$ "e" = 50 then sprite 50 would be your e

Then you could put in a routine that turns a$ into each sprite number and paste it up.

a$ = "a"

paste sprite val a$ , x, y

By the way I am using val as a guide. You need check Ive done it right. Im just trying to get a point across.

Login to post a reply

Server time is: 2025-05-19 02:33:44
Your offset time is: 2025-05-19 02:33:44