Newer
Older
pixi.js / packages / settings / src / utils / canUploadSameBuffer.js
@Matt Karl Matt Karl on 31 Oct 2017 379 bytes Next Restructure for v5 (#4387)
export default function canUploadSameBuffer()
{
    // Uploading the same buffer multiple times in a single frame can cause perf issues.
    // Apparent on IOS so only check for that at the moment
    // this check may become more complex if this issue pops up elsewhere.
    const ios = !!navigator.platform && (/iPad|iPhone|iPod/).test(navigator.platform);

    return !ios;
}