×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Synchronizing with Hardware v-sync

Synchronizing with Hardware v-sync

Synchronizing with Hardware v-sync

(OP)
Hi,

I' am programming a monitor testing programm. I need to switch images during a v-sync. I would like to use DirectX if possible, but I need to make sure I display only 1 image between v-syncs.
Anyone have some suggestions.

Does anyone know if the D3DPRESENT parameter will force this behavior in DirectX 9.0?

thnx Pjotr

RE: Synchronizing with Hardware v-sync

Yeah, set the PresentationInterval to D3DPRESENT_INTERVAL_DEFAULT and it will copy vsync.

RE: Synchronizing with Hardware v-sync

(OP)
Hi,

It seems to work, at least for slower refresh rates. If I use it at 75 Hz. Some v-syncs are missed and the screen does not refresh for 2 v-syncs. Since we want to measure the decay of the screenfosfors, we need to make sure our application only displays a picture (or a white screen) for one v-sync. The next image should be an other image (or a blank (black) screen.)

Does anyone know how this is achieved?
The nicest solution would be to display two alternating images. When I try to do it, I lose one backbuffer. Resulting in one image (the last loaded) and a grey screen alternating.

thnx Pjotr

RE: Synchronizing with Hardware v-sync

(OP)
Hi,

I've resolved some timer issues. Put the PresentationInterval on D3DPRESENT_INTERVAL_ONE and it's 'working'.

On high frequenties, you can sometimes see a small hickup on the display, suggesting a incorrect image (the wrong one) on the screen.

hope someone can use this info....

gr. Pjotr

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close