XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Direct2D - How to fix black lag on resize?

Last post 9/16/2009 9:26 PM by zodX. 1 replies.
  • 9/2/2009 2:08 PM

    Direct2D - How to fix black lag on resize?

    Hi I am experimenting with Direct2D on Win 7 in C# via SlimDX.

    I have implemented the MSDN docs simple app tutorial and have a working D2D app.

    But I notice that when I resize the window larger, there is a thick black border caused by the lag between the window frame growing, and D2D drawing in the resized render target.

    In my Resize event handler I simply resize the render target to this.ClientSize. If the resize fails I destroy my device objects.

    I then call this.Invalidate() to redraw the contents.

    I have overriden OnPaintBackground to stop the horrible grey flicker.

    In my Paint event I clear the background to blue and draw some stuff.

    Does anyone know how to fix the black lag?
  • 9/16/2009 9:26 PM In reply to

    Re: Direct2D - How to fix black lag on resize?

    No way !
    But aren´t you glad about the better redrawing instead of the DirectX-windowcontentscaling ?
Page 1 of 1 (2 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG