Last active
April 26, 2022 14:15
-
-
Save tomaspietravallo/209489932a993fe8a954035e1eca4fce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sparkar-volts@3.0.0-beta.3 | |
import { Pool, } from './volts'; | |
// Pool aka 'a pool of dynamically instanced objects' | |
// A Pool of 'block0' objects, to be spawned under the Focal Distance | |
const pool = new Pool('block0', 'Focal Distance', {}); | |
// spawn 400 objects, 5 at a time | |
// (more at a time -> slower) | |
pool.populate(400, 5); |
Author
tomaspietravallo
commented
Apr 26, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment