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 / Problems with build final in DBC

Author
Message
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 4th Jul 2007 15:56
I have finished a space invaders clone in DBC. When I run the program from DBC it works fine. However, when I build the final .exe, some of the text acts weird. It looks like text in font sizes 14 and 48 are sometimes simultaneously being put on the screen. Other than this, the game works fine.

Any suggestions on how to fix this?

LB
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 4th Jul 2007 18:52
Put a Wait 2 command (or sync if you don't mind raggedy screen updates) command just before any set text size command.

I'm unique, just like everybody else.
LBFN
19
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 5th Jul 2007 00:08
I tried the wait 2 just before changing the text size. It changed things a little, but didn't fix the problem entirely. Using sync before the text size changes worked in every case but one. I found that if I used print for everything it worked, but you are stuck with font size 12 (or whatever it is with print). Anyway, thank you! I was able to get the final build completed.

LB
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 5th Jul 2007 19:17
Quote: "Using sync before the text size changes worked in every case but one."

It should have worked in every case. There was something else special about that instance.
If Wait 2 did not work then Wait 3 may have.
The problem is that the graphics pipeline can be a bit slow for text creation.
The text hadn't finished rendering to both buffers before the OS changed the parameters used to draw the text.

I'm unique, just like everybody else.

Login to post a reply

Server time is: 2026-07-06 17:11:36
Your offset time is: 2026-07-06 17:11:36