Newer
Older
pixi.js / src / core / utils / maxRecommendedTextures.js
@Mat Groves Mat Groves on 31 Mar 2016 281 bytes big jshint tidy


var  Device = require('ismobilejs');

var maxRecommendedTextures = function(max)
{

	if(Device.tablet || Device.phone)
	{
		// check if the res is iphone 6 or higher..
		return 2;
	}
	else
	{
		// desktop should be ok
		return max;
	}
};

module.exports = maxRecommendedTextures;