| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=11"/>
- <meta name="generator" content="Doxygen 1.12.0"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Jolt Physics: Performance Test</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <script type="text/javascript" src="clipboard.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="cookie.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js"],
- jax: ["input/TeX","output/HTML-CSS"],
- });
- </script>
- <script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr id="projectrow">
- <td id="projectlogo"><img alt="Logo" src="LogoSmall.png"/></td>
- <td id="projectalign">
- <div id="projectname">Jolt Physics
- </div>
- <div id="projectbrief">A multi core friendly Game Physics Engine</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.12.0 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- var searchBox = new SearchBox("searchBox", "search/",'.html');
- /* @license-end */
- </script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function() { codefold.init(0); });
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function() {
- initMenu('',true,false,'search.php','Search',true);
- $(function() { init_search(); });
- });
- /* @license-end */
- </script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function(){initNavTree('md__docs_2_performance_test.html',''); initResizable(true); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <div id="MSearchResults">
- <div class="SRPage">
- <div id="SRIndex">
- <div id="SRResults"></div>
- <div class="SRStatus" id="Loading">Loading...</div>
- <div class="SRStatus" id="Searching">Searching...</div>
- <div class="SRStatus" id="NoMatches">No Matches</div>
- </div>
- </div>
- </div>
- </div>
- <div><div class="header">
- <div class="headertitle"><div class="title">Performance Test</div></div>
- </div><!--header-->
- <div class="contents">
- <div class="textblock"><p><a class="anchor" id="autotoc_md1"></a></p>
- <p>The performance test application contains a couple of simple scenes to test performance of Jolt Physics. It will output the results to the TTY in CSV format.</p>
- <h1><a class="anchor" id="autotoc_md2"></a>
- Commandline options</h1>
- <ul>
- <li>-s=[scene]: This allows you to select a scene, [scene] can be;<ul>
- <li><a class="el" href="class_ragdoll.html" title="Runtime ragdoll information.">Ragdoll</a>: A scene with 16 piles of 10 ragdolls (3680 bodies) with motors active dropping on a level section.</li>
- <li>RagdollSinglePile: A single pile of 160 ragdolls (3680 bodies) with motors active dropping on a level section.</li>
- <li>ConvexVsMesh: A simpler scene of 484 convex shapes (sphere, box, convex hull, capsule) falling on a 2000 triangle mesh.</li>
- <li>Pyramid: A pyramid of 1240 boxes stacked on top of each other to profile large island splitting.</li>
- <li>LargeMesh: Searches for the biggest <a class="el" href="class_mesh_shape.html">MeshShape</a> that can be created and then drops 4410 boxes on that mesh.</li>
- </ul>
- </li>
- <li>-i=[iterations]: Number of physics steps before the test finishes.</li>
- <li>-q=[quality]: This limits the motion quality types that the test will run on. By default it will test both. [quality] can be:<ul>
- <li>Discrete: Discrete collision detection</li>
- <li>LinearCast: Linear cast continous collision detection</li>
- </ul>
- </li>
- <li>-t=[num]: This sets the amount of threads the test will run on. By default it will test 1 .. number of virtual processors. Can be 'max' to run on as many thread as the CPU has.</li>
- <li>-no_sleep: Disable sleeping.</li>
- <li>-p: Outputs a profile snapshot every 100 iterations</li>
- <li>-r: Outputs a performance_test_[tag].jor file that contains a recording to be played back with JoltViewer</li>
- <li>-f: Outputs the time taken per frame to per_frame_[tag].csv</li>
- <li>-h: Displays a help text</li>
- <li>-rs: Record the simulation state in state_[tag].bin.</li>
- <li>-vs: Validate the recorded simulation state from state_[tag].bin. This will after every simulation step check that the state is the same as the recorded state and trigger a breakpoint if this is not the case. This is used to validate cross platform determinism.</li>
- <li>-repeat=[num]: Repeats all tests num times.</li>
- <li>-validate_hash=[hash]: Will validate that the hash of the simulation matches the supplied hash. Program terminates with return code 1 if it doesn't. Can be used to automatically validate determinism.</li>
- </ul>
- <h1><a class="anchor" id="autotoc_md3"></a>
- Output</h1>
- <ul>
- <li>Motion Quality: Shows the motion quality for the test.</li>
- <li>Thread Count: The amount of threads used for the test.</li>
- <li>Steps / Second: Average amount of physics steps / second over the entire duration of the test.</li>
- <li><a class="el" href="struct_hash.html" title="Fallback hash function that calls T::GetHash()">Hash</a>: A hash of all positions and rotations of the bodies at the end of the test. Can be used to verify that the test was deterministic.</li>
- </ul>
- <h1><a class="anchor" id="autotoc_md4"></a>
- Results</h1>
- <p>If you're interested in how Jolt scales with multiple CPUs and compares to other physics engines, take a look at <a href="https://jrouwe.nl/jolt/JoltPhysicsMulticoreScaling.pdf">this document</a>. </p>
- </div></div><!-- contents -->
- </div><!-- PageDoc -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
- </ul>
- </div>
- </body>
- </html>
|