<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>scior</author_name>
  <author_url>https://blog.hatena.ne.jp/scior/</author_url>
  <blog_title>しおメモ</blog_title>
  <blog_url>https://scior.hatenablog.com/</blog_url>
  <categories>
    <anon>iOS</anon>
  </categories>
  <description>複雑なアニメーションを実装する場合に、画面の更新(垂直同期)に合わせて、アニメーションの更新処理をしたいケースがあります。 単純にTimerなどで実装した場合、アニメーションの処理が呼ばれるタイミングが画面の更新と合わないため、次の垂直同期までに間に合わない可能性があり、 結果としてanimation hitchを生じさせる原因となります。 そのような問題を回避するために、垂直同期の直後のタイミングでの呼び出しが行われるCADisplayLinkを利用することができます。 Timerを利用した場合に困るケース CADisplayLinkの使い方 フレーム毎の時間の計算 リンク Timerを利用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fscior.hatenablog.com%2Fentry%2F2022%2F06%2F06%2F202338&quot; title=&quot;CADisplayLinkを用いたアニメーション実装 - しおメモ&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>2022-06-06 20:23:38</published>
  <title>CADisplayLinkを用いたアニメーション実装</title>
  <type>rich</type>
  <url>https://scior.hatenablog.com/entry/2022/06/06/202338</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
