Jump to content
  • Advertisement

Archived

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

Pavel Krupets

DirectX8 (DirectGraphics)

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

How can I use time (ex: for AI) which DX8 spend for Present() (Flip back surface to screen) function? Or DX return from this function instantly? Edited by - Pavel Krupets on 12/1/00 9:14:41 AM

Share this post


Link to post
Share on other sites
Advertisement
I''m no expert but if the function doesnt return immediatly, running the graphics and AI/ressources managment in a different thread make sense to me

Share this post


Link to post
Share on other sites
Or alternatively do all your processing before the function and then call it as the very last thing. If your frame rate is close to 72 fps then you will probably not have to wait much for the vertical blanking period.
Putting it in a thread will only benefit your performance if your frame rate is seriously out of step with the refresh rate.
Multithreading causes a performance loss in itself (multithreading is simulated multiprocessing by Windows, as I''m sure you know, and since it is simulating it you will not get as much processing time as a single threaded application, and also, if your AI & physics thread is running twice as fast as your rendering thread, you are wasting time, because you are making updates which the user cannot actually see, and what is the point in that? Think about it.



Please state the nature of the debugging emergency.


sharewaregames.20m.com

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.

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!