Newer
Older
pixi.js / src / core / utils / canUploadSameBuffer.js
@Mat Groves Mat Groves on 11 Nov 2016 370 bytes Cache VAO states
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;
}