<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'IDirect3DDevice9::Present' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'IDirect3DDevice9::Present' posted on the 'DirectX' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Mon, 01 Dec 2008 19:31:58 -0700</pubDate>
    <lastBuildDate>Mon, 01 Dec 2008 19:31:58 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>IDirect3DDevice9::Present</title>
      <link>http://www.programmersheaven.com/mb/DirectX/371818/371818/idirect3ddevice9present/</link>
      <description>Hi everyone,&lt;br /&gt;
&lt;br /&gt;
Here is the story. I am making an emulator which original system runs for 60 Hz displays. So I create a Direct3D device on fullscreen mode asking for a 60 Hz refreshing rate, I also use the D3DPRESENT_INTERVAL_ONE parameter to have the rendering synchonized with the VSync. And it looks pretty good.&lt;br /&gt;
Since the rendering consist mainly of displaying a 2d buffer with direct3d, the rendering function is pretty simple:&lt;br /&gt;
&lt;br /&gt;
	IDirect3DDevice9_BeginScene(d3ddev);&lt;br /&gt;
	IDirect3DSurface9_LockRect(pMyOffscreenSurface, &amp;amp;d3dlr, 0, 0);&lt;br /&gt;
	/* Here I copy my buffer to the offscreenSurface */&lt;br /&gt;
	IDirect3DSurface9_UnlockRect(pMyOffscreenSurface);&lt;br /&gt;
	IDirect3DDevice9_StretchRect(d3ddev, pMyOffscreenSurface, &amp;amp;srcRect, pRenderTarget, &amp;amp;dstRect, D3DTEXF_NONE);&lt;br /&gt;
	IDirect3DDevice9_EndScene(d3ddev);&lt;br /&gt;
&lt;br /&gt;
	IDirect3DDevice9_Present(d3ddev, NULL, NULL, NULL, NULL);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Problem is that when I go to windowed mode, the frame rate drops for some reasons linked to the size of the window and the current display color mode.&lt;br /&gt;
Since I am a beginner in DirectX there is certainly something I miss, but I really wish I had the same quality in the windowed mode that I have in the fullscreen mode.&lt;br /&gt;
&lt;br /&gt;
Could someone help me ?&lt;br /&gt;
&lt;br /&gt;
Thanks a lot&lt;br /&gt;
Joe&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Fri, 09 May 2008 03:30:02 -0700</pubDate>
      <category>DirectX</category>
    </item>
  </channel>
</rss>