Skip to content

Commit

Permalink
Merge pull request #8 from hanachiru/fix-typo
Browse files Browse the repository at this point in the history
modify: Fix typo on tuning_practice_physics
  • Loading branch information
iida-takuya-ca authored Aug 24, 2022
2 parents 6085e45 + 5779a4b commit efb3fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion articles/text/tuning_practice_physics.re
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ MonoBehaviourの@<code>{FixedUpdate}は@<code>{Update}とは違い、固定時
つまり、あるフレームで処理落ちした場合は次のフレームでの物理演算のコストが高くなります。
それが原因でそのフレームも処理落ちするリスクが高くなることで、次フレームでの物理演算も重くなる、といった負のスパイラルに陥る現象が物理エンジンの世界では知られています。

この問題を解決するためにUnityでは@<img>{projectsetting_time_maximum_allowed_timestep}に示すように、Project Settingsから@<kw>{Maximum Allowd Timestep}という、1フレーム内で物理演算が利用する時間の最大値が設定できます。
この問題を解決するためにUnityでは@<img>{projectsetting_time_maximum_allowed_timestep}に示すように、Project Settingsから@<kw>{Maximum Allowed Timestep}という、1フレーム内で物理演算が利用する時間の最大値が設定できます。
この値はデフォルトで0.33秒が設定されていますが、ターゲットFPSに近い値にしてFixed Updateの呼び出し回数を制限し、フレームレートを安定させたほうがよいでしょう。

//image[projectsetting_time_maximum_allowed_timestep][Project SettingsのMaximum Allowed Timestep項目][scale=1.0]
Expand Down

0 comments on commit efb3fdb

Please sign in to comment.