Extended Topics
As always, there’s more to learn and explore in the topics we’ve looked at in this chapter. The following are ways you can engage further and practice the knowledge you’ve gained in the chapter. Don’t forget to post your questions and share your accomplishments on the Babylon.js forums or in the Space-Truckers discussion boards at https://forum.babylonjs.com and https://github.com/jelster/space-truckers/discussions:
- Perform a more comprehensive quantitative analysis of the asteroid belt data to extract the precise relationship between the FPS and asteroid count. What is the specific FPS to asteroid ratio? Having the CSV file is handy here because spreadsheet tools such as Excel, Sheets, and Google Sheets are the best way to compare and calculate these figures.
- Are there ways to rewrite the
AsteroidBelt.update
method to reduce the CPU inter-frame time? Maybe it isn’t necessary to loop through every asteroid individually...