Archived

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

bahe

screen flickers in xp directx9

Recommended Posts

hello, when i test my game on win98 with directx 8 it is perfect and run smoothly, but when I test it on windows xp with directx9 it flickers... I just checked all things, what is the problem?? note : I use directx6 sdk in programming

Share this post


Link to post
Share on other sites
I had a bug once that did this. When I lost my device, I set a flag indicating I needed to reset. Upon reset, I never cleared the flag. I got flickering 60Hz rendering until I figured out what was wrong.

No ideas otherwise. I''ve used WinXP for games development every day for months without any issues.

Share this post


Link to post
Share on other sites
quote:
Original post by bahe
hello,
when i test my game on win98 with directx 8 it is perfect and run smoothly, but when I test it on windows xp with directx9 it flickers...
I just checked all things, what is the problem??
note : I use directx6 sdk in programming


Are the FPS drastically different. You may want to toggle the presentation interval in your presentation parameters. Use

d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

to disable vysync.

d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_ONE

to enable vsync.


Enabling vsync should almost definately get rid of the flicker.. good luck.

Share this post


Link to post
Share on other sites