<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hakase0274</author_name>
  <author_url>https://blog.hatena.ne.jp/hakase0274/</author_url>
  <blog_title>はかせのラボ</blog_title>
  <blog_url>https://hakase0274.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>学習系技術記事</anon>
  </categories>
  <description>あいさつ 理屈 実装 あとがき あいさつ どうも、はかせです。 今回は前回のアドバイスにあった タイムベース処理を実装してみました。 理屈 理屈は極めて単純です。 処理が1/60秒以内に終わった場合、 1/60秒まで処理を止めることでフレームレートを固定します。この方法の利点は何といっても 環境を選ばないことです。もちろん時間計測に使うAPIとかによって 多少の差はあれどもフレームベースでやることに比べたら微々たるものです。 実装 実装です。 //1フレームの時間 const float FRAME_TIME = 1.0f / 60.0f; //フレームの経過時間 float frameTim…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhakase0274.hatenablog.com%2Fentry%2F2019%2F06%2F15%2F203633&quot; title=&quot;プログラミング　タイムベースで処理を進める - はかせのラボ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hakase0274/20190615/20190615202728.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-15 20:36:33</published>
  <title>プログラミング　タイムベースで処理を進める</title>
  <type>rich</type>
  <url>https://hakase0274.hatenablog.com/entry/2019/06/15/203633</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
