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 Discussion / Flashing text: unexplainable phenomenon or just severely retarded?

Author
Message
Rabid Koala
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location:
Posted: 20th Mar 2004 21:43
Here is a six-line program that displays two lines of text; the first line is at size 14, and the second is at size 18.
The problem? The first line flashes between size 14 (its original setting) and size 18 (set after it's been executed).

I've tested this on three computers (all using DirectX 9.0b) and it occurs on all of them, even when compiled to an EXE. Is anyone else getting, or not getting this problem using this code?

SYNC is ON, but there are no SYNC statements, so to begin with, the text shouldn't even be displayed at all. Even during a WAIT period, or after the program has ended, the text is unexplainable displayed and continues blinking when it's not being refreshed. No combination of SYNC, double SYNC, CLS, or WTF has solved this problem.

What's going on? If this is a problem with something not related to DB, like DirectX, does anyone know what I can change or update to fix it?


(BTW, sorry if this question has already been posted, but although I've read many posts about blinking text, none of them seem to match this problem.)
Rabid Koala
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location:
Posted: 20th Mar 2004 21:47 Edited at: 20th Mar 2004 21:49
medwayman
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: uk
Posted: 21st Mar 2004 02:12
Yep I’ve had this before. It looks like DBC updates all text whenever you change the font size. This doesn’t happen in Pro.

Clear the screen




Font size 1 before update



Hope this helps

Quigs - Coming soonish

Spintris - Working on gfx
Rabid Koala
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location:
Posted: 21st Mar 2004 04:34
Thanks a bunch Custard!

Good ideas, but unfortunately, the extra refreshing I have to do to make a workaround work puts throws my FPS down to single-digit.

Now that I know Pro works well, I'll "buy" it for compiling. (I'll buy the 'Pro' version of a program I already paid for that never should have made it past alpha just to fix this bug, really).

Thanks again for the help.
medwayman
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: uk
Posted: 21st Mar 2004 05:53 Edited at: 22nd Mar 2004 21:12
No problem

It may be that dbc’s text commands are too slow for what you are doing (I don’t know what that is) but you shouldn’t loose fps using those “workarounds�
Try printing the fps to the screen and then use the various methods. The fps should be roughly the same. (EDIT: Sorry, you said you had single digits so you’ve obviously done this already)
You could try displaying the text using sprites or 3d plains. That may help.

DBPro is defiantly the way to go for heavy text sessions. It’s way faster than classic.

Oh, and don’t forget to set the sync rate or dbc will max out at 40fps

Cheers

EDIT 2: You shouldn’t need to do any “extra refreshing� if you are willing to supply more code, myself or someone else may be able to help further

Based on Amiga PD game Squigs. Early shots http://www.custardsoft.pwp.blueyonder.co.uk/images/03.png

Login to post a reply

Server time is: 2025-05-31 17:44:01
Your offset time is: 2025-05-31 17:44:01