Page 1 of 1

Vertical Retrace Question

Posted: Sun Feb 04, 2007 11:05 pm
by BDZ
A little background first. I'm using QuickBasic 4.0 on a Pentium II 333Mhz (Win98.) The other day I discovered from some tutorials about using OUT and INP to adjust the palette in Screen 13, so I wrote some subs for my RPG to fade the screen in and out.

I was a little disgusted by the flicker though, so I read further. I then Experimented with "WAIT &H3DA, 8" and "WAIT &H3DA, 8, 8" (another idea I had) to try to wait for the vertical retrace before messing with the palette in each iteration of the loops that fade and "unfade" the screen. These commands caused a delay, but they didn't really seem to affect the flicker much; it still remained.

I read in one of the shorter tuts that "WAIT &H3DA, 8" worked best on 486s and slower Pentiums. What I'm wondering is, is there a good way to wait for the vertical retrace in my program? I don't want to resort to ASM. I'd like my RPG to be pure QB.

Thanks for your help.

Posted: Thu Feb 08, 2007 9:07 pm
by relsoft
What exactly are you experiencing? "snow" or "flicker".

You might want to use a double buffer and draw on that buffer instead of drawing directly on the screen.

As for vertical retrace, that's the only way I know of. (wait)

Re: Vertical Retrace Question

Posted: Fri Feb 09, 2007 4:19 am
by Z!re
BDZ wrote:I'd like my RPG to be pure QB.
Spoiler: It isnt and will never be. Game over. Try again?

Posted: Fri Feb 09, 2007 11:25 pm
by BDZ
Yeah, it was a Windows driver problem (The nice people at RPGDX helped me.) The problem has been solved as of this time.

BTW, thanks for your help Z!re. What exactly you mean I don't know.

Posted: Mon Feb 12, 2007 9:24 am
by Z!re
BDZ wrote:BTW, thanks for your help Z!re. What exactly you mean I don't know.
You wont ever make a game in pure QB. It is impossible. Can not be done. Why? There is no such thing as pure QB.
So, get over yourself and just use something that actually works.

Posted: Thu Feb 15, 2007 1:26 pm
by burger2227
Bullfeathers! I found this post all over the QB sites. Don't play games with people you jerk! Your the one not playing right by QB. :roll:

Posted: Mon Feb 19, 2007 8:38 am
by sid6.7
If it was a joke it was a poor one.... people come here for help
in this particular section of of the forum and not to be made fun of or misled...:evil: