<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>arCtan</author_name>
  <author_url>https://blog.hatena.ne.jp/arCtan/</author_url>
  <blog_title>arCtanがちょっと通りますよ（ ´_ゝ｀）</blog_title>
  <blog_url>https://arctan.hatenadiary.org/</blog_url>
  <categories>
    <anon>ゲーム開発記録</anon>
  </categories>
  <description>やっぱnewは重いと実感。 描画マネージャを作って、各タスクが描画情報構造体をマネージャに登録するようにしたんだけど、その登録をSTLコンテナへのpush_backで実装してたら激重になった。 100個の描画オブジェクトがあるとすれば1フレームに100回のnewが毎フレーム発生するので死ねる。 ポインタのコンテナにすれば登録は軽くなるんだけど、実体の管理をタスク側でやらないといけなくなるので避けたい。 しかたないのでコンテナには自前のプールを使うことにした。 キャパを超えたら2倍で再確保してコピーし、要素を消しても領域は解放しないという仕組み。 メモリは常時食ってしまうけど、まあそんな気にする…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farctan.hatenadiary.org%2Fentry%2F20090320%2F1237561498&quot; title=&quot;動的配列 - arCtanがちょっと通りますよ（ ´_ゝ｀）&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-03-20 00:04:58</published>
  <title>動的配列</title>
  <type>rich</type>
  <url>https://arctan.hatenadiary.org/entry/20090320/1237561498</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
