pixi-pause
pixi-pause is a pixi.js plugin which automatically pauses and resumes your PIXI.Application
when the browser window's visibilty is changed.
Install
npm i pixi-pause
Usage
Basic usage
Importing
Pixi pause will automatically begin listening to visibilty changes.
common.js
es6 modules
Disable
pixi-pause will be enabled by default. But occassionaly it is important to disable automatic pausing and resuming.
// disablePIXIautoPause = false // enablePIXIautoPause = true