Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Optimus

Weird lines using D3DPRESENT_INTERVAL_IMMEDIATE

This topic is 5227 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I was checking on how to fasten up some thing. I used D3DPRESENT_INTERVAL_IMMEDIATE parameter. Now, It goes pretty fast. But here is the problem and question. Since I use D3DPRESENT_INTERVAL_IMMEDIATE I have weird yellow red lines in the right upper corner. How do I get rid of them, why are they here ? Thx Nothing and all, by some meaning, no difference

Share this post


Link to post
Share on other sites
Advertisement
It''s a combination of tearing (which will always occur to some degree when using IMMEDIATE) and the behaviour of the Debug runtime. When you call Present the new back buffer is cleared to a solid colour to prevent you from using contents of the previous frame (which is technically illegal).

Switching to the Retail runtime should make it go away, so it''s not a concern for anything you release. I''ve seen this on a number of professional releases. Some cards/drivers just seem to be more prone to this than others.

Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites
quote:
Original post by DrunkenHyena
When you call Present the new back buffer is cleared to a solid colour to prevent you from using contents of the previous frame (which is technically illegal).

Just adding that the issue should only happen with DISCARD swapping (because that''s when it''s illegal to use the previous contents)

Muhammad Haggag

Share this post


Link to post
Share on other sites
quote:
Original post by Coder
Just adding that the issue should only happen with DISCARD swapping (because that''s when it''s illegal to use the previous contents)

Oops. I meant to say that. Thanks for catching it.



Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!