Jump to content
  • Advertisement

Archived

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

Great Milenko

Painfuly slooooow DX Blts

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

In fullscreen mode everything is fine... but in windowed mode there unbelivably slow even blt to offscreen surfaces... I''ve got it to move a bitmap inrelation to mouse movements(Using DInput) I count to about 10 then it moves to the new location I do have a delay set of 20ms on windowed flip(blt)... I''ve tried changing it to high and lower vaules... and I''ve also take out the delay completely.... still no improvements.... heres my blt snipit: m_psurface->Blt(&app->m_window,m_surface,&rect,DDBLT_WAIT,NULL); and I clear the back buffer like this: m_surface->Blt(NULL,NULL,NULL,DDBLT_COLORFILL/DDBLT_WAIT,&fx); even if I take out the DDBLT_WAIT it still is slow as hell... and ideas...? Great Milenko

Words Of Wisdom:
"Never Stick A Pretzel In Your Butt It Might Break Off In There."


http://www.crosswinds.net/~milenko
http://www.crosswinds.net/~pirotech

Share this post


Link to post
Share on other sites
Advertisement
I am not shure if it makes such an big improvement, but you don''t need to clear the Backbuffer, if you only Blit an image from there to the Frontbuffer. If you always use the same image, then Blit it directly to the Frontbuffer, and if you change the whole contents of the Area you are Blitting to the Front, you don''t need to Clear everything also, just clear the rectangle you ar blitting.
The Blits itself shouldn''t be very slow, for my app it makes no difference if i flip or blit.
You should check if everything is in Videomemory, maybe your GDI Resolution is that high, that the Backbuffer doesn''t fit into Vidmem anymore. Maybe i someone can give you detailed Infos when you post your System Specs.

Lars

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!