• Advertisement

Archived

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

D3D8 When should u TestCoopLevel()?

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

When do u need to call TestCooperativeLevel() to check if the device is ok to render? I know u should call it when calling ->Present(), what about when u are drawing 3D objects or textures? If the App is minimized is it ok to draw stuff to the backbuffer, or will the app crash if its front buffer is invalid?

  Downloads:  ZeroOne Realm

Share this post


Link to post
Share on other sites
Advertisement
use testcooplevel() before drawing even takes place, just as the sdk examples do.
if you draw when the the buffer doesn''t have the coop-level then it simply won''t draw until you restore all devices.

look at sdk examples

Share this post


Link to post
Share on other sites
I think you can at least go through the motions of drawing, but in general it''s good form to not be using the processor if you are not actually drawing anything (ie the device is lost because the window is minimized, so don''t waste cycles on trying to draw)

Share this post


Link to post
Share on other sites

  • Advertisement