react-photo-studio icon indicating copy to clipboard operation
react-photo-studio copied to clipboard

Disable Preserve Drawing Buffer in Production

Open chase-manning opened this issue 3 years ago • 0 comments

For Percy snapshots to work, the Pixi Application parameter preserveDrawingBuffer needs to be set to true.
However, setting this parameter to true slows down production.
Instead we should check if the application is running in the pipeline or in production, and conditionally set this parameter to true when in pipeline and false in production.

This can be found in Canvas.tsx as new PIXI.Application

chase-manning avatar Jan 08 '22 23:01 chase-manning