タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

AS3とPerformanceに関するminodiskのブックマーク (2)

  • Mathクラスでよくやる高速化備忘録 « nulldesign

    最近高速化に興味津々です。そんな中、Mathクラス遅いよね、遅くね?。ってことで、高速エンジン書くときによく使う最適化の一部(Mathクラス中心)を備忘録的に。ちょこっとだけ検証もしました。 内容的には既に既出のものばかりですが、備忘録ということで。 検証方法ですが、単純な式を1,000,000回繰り返し、そのタイムを10回計測。 平均値をもとにパフェーマンスを時間ベースで評価しています。 Math.max var k:Number = Math.max( a, b ); var k:Number = ( a > b )? a : b; // 46.4ms -> 3.5ms Math.min var k:Number = Math.min( a, b ); var k:Number = ( a 3.5ms Math.round var k:Number = Math.round( a

    minodisk
    minodisk 2010/10/21
    Mathクラス高速化
  • polygonal labs » Bitwise gems - fast integer math

    Bitwise operators are very fast in AS3, so here is a small collection of code snippets which can speed up certain computations. I won’t explain what bit operators are and how to use them, rather pointing to an excellent article hosted on gamedev.net: ‘Bitwise Operations in C’. If you know any good tricks that are not included here, feel free to leave a comment or send me an email. All benchmarks w

    minodisk
    minodisk 2010/01/08
    最適化
  • 1