Should code be rewritten or should I use methods?

Dave

First of all, I couldn't find this question, so I decided to post here.

While working on a game, I realized the more entities I have on the playing field, the more the fps drops, which is expected.

To optimize it, I read somewhere (I'll post the link if I can find it) that if you rewrite code instead of using universal methods, it is faster, because it doesn't have to 'link' the methods each time it runs the code. But, since I am rewriting code, It might take up some more virtual space.

I just want to know your opinions on this, and if you think it is true. And I would gladly accept any other optimization tactics or links.

Edit: What's the point of making the question 'too broad' after the answer is selected? If the answer was selected it means there was a valid answer, which means that the question was not too broad, otherwise the answerneers would have had problems...

Thanks

John Sheridan

アプリのCPUを占有している原因を推測するのではなく、アプリのパフォーマンス特性のプロファイリングを検討する必要があります。これは、CPU時間を最も消費しているコードの部分に戻るのに役立ちます。コードの中で最もCPUを集中的に使用する部分を見つけ、そのコードのパフォーマンスが向上すると思われる調整を行ってから、パフォーマンスアナライザーを再度実行します。変更を加えると、アナライザーによって報告されるパフォーマンス特性が大幅に変更されることは珍しくありません。最も重い部分を最適化できない場合は、次に重い部分に進みます。

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

TOP 一覧

  1. 1

    STSでループプロセス「クラスパス通知の送信」のループを停止する方法

  2. 2

    Spring Boot Filter is not getting invoked if remove @component in fitler class

  3. 3

    Python / SciPyのピーク検出アルゴリズム

  4. 4

    セレンのモデルダイアログからテキストを抽出するにはどうすればよいですか?

  5. 5

    tkinterウィンドウを閉じてもPythonプログラムが終了しない

  6. 6

    androidsoongビルドシステムによるネイティブコードカバレッジ

  7. 7

    ZScalerと証明書の問題により、Dockerを使用できません

  8. 8

    VisualStudioコードの特異点/ドッカー画像でPythonインタープリターを使用するにはどうすればよいですか?

  9. 9

    ビュー用にサイズ変更した後の画像の高さと幅を取得する方法

  10. 10

    二次導関数を数値計算するときの大きな誤差

  11. 11

    Ansibleで複数行のシェルスクリプトを実行する方法

  12. 12

    画像変更コードを実行してもボタンの画像が変更されない

  13. 13

    Reactでclsxを使用する方法

  14. 14

    Three.js indexed BufferGeometry vs. InstancedBufferGeometry

  15. 15

    __init__。pyファイルの整理中に循環インポートエラーが発生しました

  16. 16

    PyTesseractを使用した背景色のため、スクリーンショットからテキストを読み取ることができません

  17. 17

    値間の一致を見つける最も簡単な方法は何ですか

  18. 18

    reCAPTCHA-エラーコード:ユーザーの応答を検証するときの「missing-input-response」、「missing-input-secret」(POSTの詳細がない)

  19. 19

    三項演算子良い練習の代わりとしてOptional.ofNullableを使用していますか?

  20. 20

    好き/愛の関係のためのデータベース設計

  21. 21

    エンティティIDを含む@RequestBody属性をSpringの対応するエンティティに変換します

ホットタグ

アーカイブ