I have populated some path geometry with 100000 lines (not joined together)
and am finding that when it comes to rendering, the EndDraw is taking up to
30 seconds to complete. This is obviously unacceptable. Am I missing
something obvious here, since I was expecting Direct 2d to be fast.
I am running it on Vista, not sure if that is important.
m_pRenderTarget->BeginDraw();
m_pRenderTarget->Clear(D2D1::ColorF(D2D1::ColorF::White));
m_pRenderTarget->SetTransform(m_Transform);
m_pRenderTarget->DrawGeometry(m_pPathGeometry, m_pLightSlateGrayBrush);
hr = m_pRenderTarget->EndDraw();
This is obviously unacceptable. Am I missing something obvious here, since I
was expecting Direct 2d to be fast.
I am running it on Vista, not sure if that is important.
=?Utf-8?B?bGlzdGVjaHRvbnk=?= <liste...@discussions.microsoft.com> spake the secret code
<5A8E4F06-A159-4D6A...@microsoft.com> thusly:
Did you compare what you are doing to what is being done in the
geometry realization sample? The source is in the Windows 7 SDK.
<http://msdn.microsoft.com/en-us/library/dd756659(VS.85).aspx>
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
"Richard [Microsoft Direct3D MVP]" wrote:
> [Please do not ail me a copy of your followup]
> .
>