Profiling animation performance
To test the performance of the application on your system, you can import the test model named Woman.gltf
in the woman
subfolder of the assets
folder, move the slider next to the Create Multiple Instances button to 100, and click the button Create Multiple Instances several times. Every click will add another 100 instances of the model, distributed randomly across the virtual world.
Or, you can change the code for the instance slider in the createFrame()
method of the UserInterface
class in the opengl
folder. Adjust the fourth parameter of the call, controlling the maximum value of the slider:
ImGui::SliderInt("##MassInstanceCreation",
&manyInstanceCreateNum, 1, 100, "%d", flags);
After you add a couple of hundreds of instances, you should see a picture similar to Figure 2.1. The Timers section of the user interface has been zoomed into to show the values for the time it takes to generate the model matrices:
...