screen flickers in xp directx9

Started by
2 comments, last by bahe 20 years, 11 months ago
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
Advertisement
I don''t know...try to get a new DXsdk
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.

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.

This topic is closed to new replies.

Advertisement