New in Fragment: sketch asynchronous initialisation 👯
init() now supports async functions! While load() can still be used as before, this simplifies the share of resources between the two functions.
Also getting ready for p5.js 2.0 and WebGPU requestAdapter() 👀
init() now supports async functions! While load() can still be used as before, this simplifies the share of resources between the two functions.
Also getting ready for p5.js 2.0 and WebGPU requestAdapter() 👀
Comments
Sketches now run at monitor's native framerate instead of the default 60 fps, bringing enhanced support for 120/144Hz monitors and smoother animations on high-refresh-rate displays.
A specific framerate can still be set with:
export let fps = 24;
An optional configuration file `fragment.config.js` can be placed at the sketch root to extend @vite.dev configuration settings.
Additional configuration capabilities are planned for future releases 👀
Docs: https://github.com/raphaelameaume/fragment/blob/dev/docs/guide/configuration.md