VJForums  

Go Back   VJForums > Technique > Developers Area

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10th September 2004, 06:48 PM
Esotic's Avatar
Esotic Esotic is offline
Fine Ass Posts
 
Join Date: Sep 2002
Location: Raleigh, NC
Posts: 526
Default VSync and Frame Buffering

There's been some Discussion here in the past about Page Tearing (especially in TZT).

Now that I'm in the position to do something about it I wanted to ask for opinions/guidelines on how to keep such a thing in check.

I've been doing my research on triple buffering, but it doesn't appear as though the Flip() command in DX is really all it's cracked up to be (but is on the right track). I did find a good page on using a VXD running in ring 0 to help with the real time inadequacies of tracking the Vertical Scan in windows, though.

My current guess is that I would need to manually maintain three buffers with 4 buffer states.

- Drawing Buffer State (the one I'm actually writing to)
- Waiting To Be Primary State (post Drawing Buffer State)
- Primary Buffer State (being displayed)
- Waiting to be Drawing Buffer State (post Post Display State)

Ergo, the buffers would go through this cycle:

Drawing -> Waiting To Be Primary -> Primary -> Waiting To Be Drawing -> Drawing -> etc...

Does this make sense? Is this actually what triple buffering means and I misunderstood the documentation? The MS website made it appear as though the programmer was only ever able to access the Waiting To Be Drawn buffer which kinda defeats having 3 buffers, right?

Bonzo Goes To BltBurg,

-Esotic
Reply With Quote
  #2  
Old 10th September 2004, 08:18 PM
elbows's Avatar
elbows elbows is offline
SillyPerson
 
Join Date: Apr 2002
Location: UK
Posts: 2,860
Default

This might help explain the theory a bit:

http://www.teamradeon.com/articles/g...uide_page3.asp
Reply With Quote
  #4  
Old 11th September 2004, 01:22 PM
klumsy klumsy is offline
VisualJockey JesusFreak
 
Join Date: May 2004
Posts: 178
Default

directDraw is antiquated,
i'd rather convert the rendering engine to direct3d
where the final step is putting your tzt 2d output onto texture, then to screen using more advanced and powerful techniques, even being able to scale it up to a much higher resolution
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger