Skip to content

Bug fixes and performance improvements

Compare
Choose a tag to compare
@Abbondanzo Abbondanzo released this 10 Jun 04:31
· 167 commits to master since this release
b0228b0

This version adds a number of fixes, including:

  • Proper memoization and caching of loaded models into memory
  • Hashing player names to avoid illegal property characters (Fixes #25)
  • Clock unsubscription and resetting on unmount (should fix #26)
  • CSS fixes for slider that doubled screen width
  • Removal of reselect dependency (lower bundle size)
  • Removes a redundant import in the example project

In addition, the following new features were added:

  • GameManagerLoader wrapper that, given GameBuilderOptions, will handle asynchronous loading of all models and will display loading percentages.
    • Previously, we merged the responsibility of loading replay data/metadata and building the scene into one single async call. However, this is misleading since the user assumes these load times are responsible for the API call alone. Showing loading progress provides a better UX
  • Separation of Application and replay viewer in the example project. This lets us test the performance of the replay viewer in a more realistic environment, allowing us to check that certain features like in-memory model storage work as intended. This is especially important for letting us simulate CPU latency in the future