Namespace settings

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

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

Variables

ADAPTER
ANISOTROPIC_LEVEL
CAN_UPLOAD_SAME_BUFFER
CREATE_IMAGE_BITMAP
FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
FILTER_MULTISAMPLE
FILTER_RESOLUTION
GC_MAX_CHECK_COUNT
GC_MAX_IDLE
GC_MODE
MIPMAP_TEXTURES
PRECISION_FRAGMENT
PRECISION_VERTEX
PREFER_ENV
RENDER_OPTIONS
RESOLUTION
RETINA_PREFIX
ROUND_PIXELS
SCALE_MODE
SORTABLE_CHILDREN
SPRITE_BATCH_SIZE
SPRITE_MAX_TEXTURES
STRICT_TEXTURE_CACHE
TARGET_FPMS
UPLOADS_PER_FRAME
WRAP_MODE