<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>p-tal</author_name>
  <author_url>https://blog.hatena.ne.jp/p-tal/</author_url>
  <blog_title>ゲームプログラマ見習いの日記</blog_title>
  <blog_url>https://p-tal.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラム</anon>
    <anon>メモ</anon>
  </categories>
  <description>FPSを60に調整。前フレームの終了時の時間を保存し、今フレームの最後でその終了時の時間＋(16ms)になるまでSleep。 正確な60fpsではないけど、これで一応OK。 void adjustFPS() { // 終了予定時間 DWORD endTime = m_prevFrameFinishTime + 16; // 予定時間までSleep for (;;) { DWORD time = timeGetTime(); if (time &gt;= endTime) { m_prevFrameFinishTime = time; break; } Sleep(1); } ここまでは今までできてい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fp-tal.hatenadiary.org%2Fentry%2F20090929%2F1254187853&quot; title=&quot;fpsと処理率 - ゲームプログラマ見習いの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-09-29 10:30:53</published>
  <title>fpsと処理率</title>
  <type>rich</type>
  <url>https://p-tal.hatenadiary.org/entry/20090929/1254187853</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
