alptugan
8/28/2018 - 9:07 AM

Useful Snippets About Canvas

PIXI.glCore.VertexArrayObject.FORCE_NATIVE = true;
PIXI.settings.CAN_UPLOAD_SAME_BUFFER = false
PIXI.settings.RENDER_OPTIONS.legacy = true
PIXI.settings.RENDER_OPTIONS.preserveDrawingBuffer = true
PIXI.settings.RENDER_OPTIONS.antialias = false
PIXI.settings.PRECISION_FRAGMENT = PIXI.PRECISION.LOW
PIXI.settings.PRECISION_VERTEX = PIXI.PRECISION.LOW
PIXI.settings.MIPMAP_TEXTURES = false


// Text bitmaptext height
game.cache.getBitmapFont(KEY).font.lineHeight

// Bitmap font loading
http://www.html5gamedevs.com/topic/8659-about-fonts/?tab=comments#comment-94781