UNPKG

@pixi/core

Version:
1 lines 700 B
{"version":3,"file":"canUploadSameBuffer.js","sources":["../../src/batch/canUploadSameBuffer.ts"],"sourcesContent":["import { isMobile } from '@pixi/settings';\n\n/**\n * Uploading the same buffer multiple times in a single frame can cause performance issues.\n * Apparent on iOS so only check for that at the moment\n * This check may become more complex if this issue pops up elsewhere.\n * @private\n * @returns {boolean} `true` if the same buffer may be uploaded more than once.\n */\nexport function canUploadSameBuffer(): boolean\n{\n return !isMobile.apple.device;\n}\n"],"names":["isMobile"],"mappings":";;;;;;AAUA,SAAA,mBAAA,GAAA;AACI,EAAO,OAAA,CAACA,kBAAS,KAAM,CAAA,MAAA,CAAA;AAC3B;;;;"}