Jump to content
  • Advertisement
Sign in to follow this  
TheNobleOne

DirectXTimer (MDX)

This topic is 4730 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

I am working on the game example in Tom Miller's Kick Start book and it seems he uses a Utility object, and a DirectXTimer object in his code. I can't find either of thise in DX at all. I looked at his code that came with the book and it uses them and I have the same stuff referenced and using as he does. I was wondering if these were removed from MDX or are they there under a different name? If not it looks like I will be having to make a high res timer. as in 1ms timer.

Share this post


Link to post
Share on other sites
Advertisement
I have a pretty high resolution timer running. I can post the code, if you like. It might take a little modifying, but it seems to work quite decently for me.

Share this post


Link to post
Share on other sites
The timer that you are looking for in located in the common framework that ships with the SDK, Have a look in the managed samples directory under the common directory, you will need to add the dxutmisc.cs from memory.

Also just a reminder that ZMan has release the updated code for the Managed DirectX Kickstart book on his site. The ZBuffer

Share this post


Link to post
Share on other sites
Thanks a bunch lol the ZBuffer Utility.cs fixed my problems :P. You know they should make the timer actually part of DirectX it could reside in the Microsoft.DirectX namespace since it is common.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!