Namespace settings

User's customizable globals for overriding the default PIXI settings, such as a renderer's default resolution, framerate, float precision, etc.

Example

import { settings, ENV } from 'pixi.js';

// Use the native window resolution as the default resolution
// will support high-density displays when rendering
settings.RESOLUTION = window.devicePixelRatio;

// Used for older v1 WebGL devices for backwards compatibility
settings.PREFER_ENV = ENV.WEBGL_LEGACY;
@namespace PIXI.settings

Index

Variables

Generated using TypeDoc