We have low, medium and high tiers in graphic settings.
How is a tier selected at runtime for each platform? The only sentence the docs have about this is that a tier is automatically detected by the GPU.
How is this selection done? Which devices fall into which tier? What are the rules? How are we supposed to know which devices go into which tiers so we can use this feature?
Tier 1:
Android - all devices that have support for OpenGL ES 2 only
iOS - all devices before iPhone 5S (not including 5S, but including 5C), iPods up to and including 5th generation, iPads up to 4th generation, iPad mini first generation
Desktops: DirectX 9, HoloLens
Tier 2:
Android - all devices with OpenGL ES 3 support
iOS - all devices starting from iPhone 5S, iPad Air, iPad mini 2nd generation, iPod 6th generation
AppleTV
From what Iâve heard, this tier system is pretty much automatic depending on hardware. This isnât graphics level, which is what youâd put on your gameâs option gui
Id like to enable Cascaded Shadows on iPhoneX - i think it can handle it.
In GraphicsSettings uncheck âUseDefaultsâ for Tier 3 and check âCascaded Shadowsâ so its available for tier 3
Then to i add a script that will detect when it is an iPhone X and change the graphics Tiers?
Something like:
deviceID = SystemInfo.deviceModel;
if(deviceID == "iPhone10,3 " || deviceID == "iPhone10,6"){
// This is an iPhoneX
//now change the graphics tier to tier 3
Graphics.activeTier = GraphicsTier.Tier3
}
And i guess I would put this at the start of the game? Or could i use it at anytime to enable or disable Tier 3 at will?
Yes, something like this. Just keep in mind that âChanging this value affects any subsequently loaded shadersâ, so you have to do that before any shaders are loaded.
Thank you. I can put the code at the start of the game before i load the main scene. I thought that shaders were compiled at the stat while the game loads so will it still affect the shaders? Anyways i think cascade shadow dont have anything to do with shaders, is that correct? so i guess it wouldnt matter?