Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Update site/docs/manual/Architecture.md
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Long <robert@robertlong.me>
  • Loading branch information
fernandojsg and robertlong authored Aug 4, 2020
1 parent c59cef0 commit fdb5544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/manual/Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The `World` constructor accepts an option object with the following parameters:
- ***entityPoolSize***: Define the initial entity pool size for entities. It can help to avoid GC during execution if the application expands the pool dynamically at execution time.

```javascript
// We know we will have around 10k enemies in our game initially so let's reserve that size initially instead of keep extending the pool as we need more entities
// We know we will initially have around 10k enemies in our game so let's allocate 10k enemies initially and expand the pool as needed.
world = new World({ entityPoolSize: 10000 });
```

Expand Down

0 comments on commit fdb5544

Please sign in to comment.