pwri-opera / OperaSim-PhysX

Simulator on Unity + PhysX communicating with ROS
Apache License 2.0
21 stars 11 forks source link

パフォーマンス表示機能を実装する #41

Closed yosuke closed 3 months ago

yosuke commented 5 months ago

下のURLで表示できるfpsだけではなく、物理シミュレーションのレートも表示したい。 https://www.sejuku.net/blog/82841

yosuke commented 5 months ago

Fixed Timestep値とMaximum Allowed Timestepが重要。Fixed Timestepに間に合わなかったとき、の統計が欲しい。 https://docs.unity3d.com/ja/560/Manual/class-TimeManager.html

yosuke commented 5 months ago

実時間とUnity内時間の良い解説記事 https://qiita.com/yuki2006/items/923fa8e64e11a2ab159c

yosuke commented 5 months ago

プロファイラーカウンターを使うとプロファイラー画面上で時系列を表示できて便利そう。 https://blog.unity.com/ja/engine-platform/customizing-performance-metrics-in-the-unity-profiler

yosuke commented 5 months ago

表示機能は実装完了。 Maximum Allowed Timestepを超えるとfixedUpdateがスキップされてしまうので、大き目の値に変更しておいた方が良いかもしれない。

yosuke commented 5 months ago

@MaruiYuta こちらのブランチに置いておきました。何かあったらissueに書き込んでください。 https://github.com/pwri-opera/OperaSim-PhysX/tree/feature/realtime_factor_profiler