<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Slowdown at ID2D1DeviceContext::SetTarget in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000697#M87019</link>
    <description>&lt;P&gt;We found a slowdown (about 10x) at ID2D1DeviceContext::SetTarget. We check it at Intel HD 4600 videocard (driver version is 10.18.14.4264).&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;  m_pDeviceContext-&amp;gt;SetAntialiasMode(D2D1_ANTIALIAS_MODE_ALIASED);
  m_pDeviceContext-&amp;gt;SetTextRenderingParams(m_pTextRenderingParams);//DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC
  m_pDeviceContext-&amp;gt;BeginDraw();
  m_pDeviceContext-&amp;gt;SetTarget(m_pBitmap);
  // there is no draw commands
  m_pDeviceContext-&amp;gt;EndDraw();&lt;/PRE&gt;

&lt;P&gt;We have two blocks of code for&lt;CODE&gt; m_pBitmap &lt;/CODE&gt;&lt;CODE class="plain"&gt;creation&lt;/CODE&gt;. The first has normal performance, but the second has slowdown.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	1. Create bitmap for a swachain surface&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;  auto props = D2D1::BitmapProperties1(D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, D2D1::PixelFormat(format, D2D1_ALPHA_MODE_IGNORE));
  m_pDeviceContext-&amp;gt;CreateBitmapFromDxgiSurface(pSurface, props, &amp;amp;m_pBitmap);&lt;/PRE&gt;

&lt;P&gt;2. Create bitmap for a newly created texture&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;  m_pDevice-&amp;gt;CreateTexture2D(&amp;amp;descTexture, NULL, &amp;amp;m_pRenderTexture);
  m_pDevice-&amp;gt;CreateRenderTargetView(m_pRenderTexture, NULL, &amp;amp;m_pRTV);
  m_pRenderTexture.QueryInterface(pRenderSurface);
  auto props = D2D1::BitmapProperties1(D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, D2D1::PixelFormat(format, D2D1_ALPHA_MODE_IGNORE));
  m_pDeviceContext-&amp;gt;CreateBitmapFromDxgiSurface(pRenderSurface, props, &amp;amp;m_pBitmap);&lt;/PRE&gt;

&lt;P&gt;There are equal texture descriptions in the both. And NVIDIA and AMD video cards have equal performance in these cases&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2015 09:45:31 GMT</pubDate>
    <dc:creator>Evgeny_K_</dc:creator>
    <dc:date>2015-08-27T09:45:31Z</dc:date>
    <item>
      <title>Slowdown at ID2D1DeviceContext::SetTarget</title>
      <link>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000697#M87019</link>
      <description>&lt;P&gt;We found a slowdown (about 10x) at ID2D1DeviceContext::SetTarget. We check it at Intel HD 4600 videocard (driver version is 10.18.14.4264).&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;  m_pDeviceContext-&amp;gt;SetAntialiasMode(D2D1_ANTIALIAS_MODE_ALIASED);
  m_pDeviceContext-&amp;gt;SetTextRenderingParams(m_pTextRenderingParams);//DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC
  m_pDeviceContext-&amp;gt;BeginDraw();
  m_pDeviceContext-&amp;gt;SetTarget(m_pBitmap);
  // there is no draw commands
  m_pDeviceContext-&amp;gt;EndDraw();&lt;/PRE&gt;

&lt;P&gt;We have two blocks of code for&lt;CODE&gt; m_pBitmap &lt;/CODE&gt;&lt;CODE class="plain"&gt;creation&lt;/CODE&gt;. The first has normal performance, but the second has slowdown.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	1. Create bitmap for a swachain surface&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;  auto props = D2D1::BitmapProperties1(D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, D2D1::PixelFormat(format, D2D1_ALPHA_MODE_IGNORE));
  m_pDeviceContext-&amp;gt;CreateBitmapFromDxgiSurface(pSurface, props, &amp;amp;m_pBitmap);&lt;/PRE&gt;

&lt;P&gt;2. Create bitmap for a newly created texture&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;  m_pDevice-&amp;gt;CreateTexture2D(&amp;amp;descTexture, NULL, &amp;amp;m_pRenderTexture);
  m_pDevice-&amp;gt;CreateRenderTargetView(m_pRenderTexture, NULL, &amp;amp;m_pRTV);
  m_pRenderTexture.QueryInterface(pRenderSurface);
  auto props = D2D1::BitmapProperties1(D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, D2D1::PixelFormat(format, D2D1_ALPHA_MODE_IGNORE));
  m_pDeviceContext-&amp;gt;CreateBitmapFromDxgiSurface(pRenderSurface, props, &amp;amp;m_pBitmap);&lt;/PRE&gt;

&lt;P&gt;There are equal texture descriptions in the both. And NVIDIA and AMD video cards have equal performance in these cases&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 09:45:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000697#M87019</guid>
      <dc:creator>Evgeny_K_</dc:creator>
      <dc:date>2015-08-27T09:45:31Z</dc:date>
    </item>
    <item>
      <title>Hi Evengy,</title>
      <link>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000698#M87020</link>
      <description>&lt;P&gt;Hi Evengy,&lt;/P&gt;

&lt;P&gt;I will take this to the driver team and see what is going on. In order ti help us can you fill complete the template below. We need the info to aid in our investigation.&lt;/P&gt;

&lt;P&gt;System Setup Information:&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P&gt;System Used: (Manufacturer/Model)&lt;BR /&gt;
	CPU SKU: (i3, i5, Pentium, Celeron, etc.)&lt;BR /&gt;
	GPU SKU: (HD4400, HD5100, etc.)&lt;BR /&gt;
	Processor Line: (Y-Series, U-Series, etc.)&lt;BR /&gt;
	System BIOS Version:&lt;BR /&gt;
	CMOS settings:&lt;BR /&gt;
	Graphics Driver Version:&lt;BR /&gt;
	GOP/VBIOS Version:&lt;BR /&gt;
	Operating System:&lt;BR /&gt;
	OS Version:&lt;BR /&gt;
	API:&lt;BR /&gt;
	Occurs on non-Intel GPUs?:&lt;/P&gt;

&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;BR /&gt;
	1.&lt;BR /&gt;
	2.&lt;BR /&gt;
	3.&lt;BR /&gt;
	4.&lt;BR /&gt;
	5.&lt;BR /&gt;
	6.&lt;BR /&gt;
	7.&lt;BR /&gt;
	8.&lt;BR /&gt;
	9.&lt;BR /&gt;
	10.&lt;/P&gt;

&lt;P&gt;Expected Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;Actual Results:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;Additional Information:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 14:34:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000698#M87020</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2015-08-27T14:34:16Z</dc:date>
    </item>
    <item>
      <title>System Setup Information:</title>
      <link>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000699#M87021</link>
      <description>&lt;P&gt;System Setup Information:&lt;BR /&gt;
	-----------------------------------------&lt;/P&gt;

&lt;P&gt;System Used: Gigabyte Technology Co. Ltd. H81M-S2PV&lt;BR /&gt;
	CPU SKU: i5&lt;BR /&gt;
	GPU SKU: HD4600&lt;BR /&gt;
	Processor Line:&lt;BR /&gt;
	System BIOS Version: American Megatrends Inc. F4, 14.08.2013&lt;BR /&gt;
	CMOS settings: default&lt;BR /&gt;
	Graphics Driver Version:&amp;nbsp; 10.18.14.4264&lt;BR /&gt;
	GOP/VBIOS Version:&lt;BR /&gt;
	Operating System: Windows 7 X64&lt;BR /&gt;
	OS Version: 6.1.7601 Service Pack 1&lt;BR /&gt;
	API: Direct2D 1.1 + Direct3D11&lt;BR /&gt;
	Occurs on non-Intel GPUs?: no&lt;/P&gt;

&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;1. Create 2d texture&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;desc.Width = width;
desc.Height = height;
desc.MipLevels = 1;
desc.ArraySize = 1;
desc.Format = DXGI_FORMAT_B8G8R8A8_UNORM;
desc.Usage = D3D11_USAGE_DEFAULT;
desc.BindFlags = D3D11_BIND_RENDER_TARGET;
desc.CPUAccessFlags = 0;
desc.MiscFlags = 0;
desc.SampleDesc.Count = 1;
desc.SampleDesc.Quality = 0;&lt;/PRE&gt;

&lt;P&gt;2. Create ID2D1Bitmap1&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;m_pDevice-&amp;gt;CreateTexture2D(&amp;amp;descTexture, NULL, &amp;amp;m_pRenderTexture);
m_pDevice-&amp;gt;CreateRenderTargetView(m_pRenderTexture, NULL, &amp;amp;m_pRTV);
m_pRenderTexture.QueryInterface(pRenderSurface);
auto props = D2D1::BitmapProperties1(D2D1_BITMAP_OPTIONS_TARGET | D2D1_BITMAP_OPTIONS_CANNOT_DRAW, D2D1::PixelFormat(format, D2D1_ALPHA_MODE_IGNORE));
m_pDeviceContext-&amp;gt;CreateBitmapFromDxgiSurface(pRenderSurface, props, &amp;amp;m_pBitmap);
&lt;/PRE&gt;

&lt;P&gt;3. ID2D1DeviceContext::SetTarget&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;m_pDeviceContext-&amp;gt;SetAntialiasMode(D2D1_ANTIALIAS_MODE_ALIASED);
m_pDeviceContext-&amp;gt;SetTextRenderingParams(m_pTextRenderingParams);//DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC
m_pDeviceContext-&amp;gt;BeginDraw();
m_pDeviceContext-&amp;gt;SetTarget(m_pBitmap);
m_pDeviceContext-&amp;gt;EndDraw();&lt;/PRE&gt;

&lt;P&gt;Additional Information:&lt;BR /&gt;
	-------------------------------&lt;/P&gt;

&lt;P&gt;There is slowdown. But performance is ok if we use ID2D1Bitmap1 attached to IDXGSwapchain.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2015 10:31:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000699#M87021</guid>
      <dc:creator>Evgeny_K_</dc:creator>
      <dc:date>2015-08-28T10:31:00Z</dc:date>
    </item>
    <item>
      <title>Thanks Evgeny,</title>
      <link>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000700#M87022</link>
      <description>&lt;P&gt;Thanks Evgeny,&lt;/P&gt;

&lt;P&gt;I have filed a ticket and am working with our driver team to get this investigated.&lt;/P&gt;

&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2015 16:27:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000700#M87022</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2015-08-28T16:27:01Z</dc:date>
    </item>
    <item>
      <title>Thanks. I'm waiting your</title>
      <link>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000701#M87023</link>
      <description>&lt;P&gt;Thanks. I'm waiting your response.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2015 17:17:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000701#M87023</guid>
      <dc:creator>Evgeny_K_</dc:creator>
      <dc:date>2015-08-28T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Could you inform how long to</title>
      <link>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000702#M87024</link>
      <description>&lt;P&gt;Could you inform how long to wait for an answer to my ticket?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 09:55:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000702#M87024</guid>
      <dc:creator>Evgeny_K_</dc:creator>
      <dc:date>2015-09-08T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Hi Evgeny,</title>
      <link>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000703#M87025</link>
      <description>&lt;P&gt;Hi Evgeny,&lt;/P&gt;

&lt;P&gt;I do not have a time estimate yet. The performance team has a lot of issues to look at right now, including this one. Performance issues are complex and take time to properly investigate.I hope to have an update this week.&lt;/P&gt;

&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 15:14:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Slowdown-at-ID2D1DeviceContext-SetTarget/m-p/1000703#M87025</guid>
      <dc:creator>Michael_C_Intel2</dc:creator>
      <dc:date>2015-09-08T15:14:59Z</dc:date>
    </item>
  </channel>
</rss>

