Archived

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

Direct3D Optimizations...how to?

This topic is 5174 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''m designing a tile based D3D game. My problem is that without rendering anything at all, I am only getting 60 FPS frame rate. I noticed on the Samples shipped with DirectX that an average frame rate can be in the upper hundreds while drawing primitives. Are there any optimizations can I perform in the creation of the D3D Device and Object that might help push this up? For example, dithering, Z-Buffer, etc... Thanks in advance! Chris

Share this post


Link to post
Share on other sites
Just out of curiocity,

using D3DPRESENT_INTERVAL_IMMEDIATE will cause it to present the image without waiting for the vertical retrace correct?

if so would not waiting for it cause any adverse effects?

or would it just be the fact that your not locking the framerate to the maximum of your screen refresh?

it would seem like if you are updating the frame more times a second than the screen is refreshing then it would appear as though your ''dropping'' frames?

Raymond Jacobs,

www.EDIGames.com

www.EtherealDarkness.com

Share this post


Link to post
Share on other sites
If you are updating quicker than your monitor can refresh then you can get what is called tearing, where the top part of the screen shows one frame and the bottom another. Usually there is only a small diference in frames so at the join it looks like the botttom half is slightly shifted

Share this post


Link to post
Share on other sites
Thanks so much for pointing out what this parameter actually does. I was wondering why it did not improve my frame rate by even 1 frame, and now after some other changes to improve my rate, I''m seeing tearing...so it makes more sense now. You saved me lots of debug time on this one.

Thanks,
Chris

Share this post


Link to post
Share on other sites