Weird shading on Android and Mobile Preview ES3.1

Revisiting this again, because I found having really terrible framerate on the P9000 device and needed to go deeper into the exciting topic of performance profiling and device profiles and scalability settings.
Reenabling the Profile Selector Plugin, creating my own DefaultDeviceProfiles.ini and overriding the MatchProfile for Mali T8xx with my own profile to experiment, I found that the ‘Light in Mouth’ problem appears, when sg.ShadowQuality is < 2.

Drilling down in a custom AndroidScalability.ini with settings based on ShadowQuality@0 default settings it turns out, that 2 parameters are to be changed for this in combination:

r.ShadowQuality needs to be > 0

AND

r.Shadow.CSM.MaxCascades needs to be > 1

to make the problem disappear. Well, framerate now goes from 8.5fps to 14.5fps - a huge win in terms of increase percentage - but actually still really bad. Now need to go further into performance and see, if anything is possible to get better results with my poor GPU…

Now I found, that lowering r.Shadow.MaxCSMResolution from 512 to 256 makes the ‘Light in Mouth’ problem ‘slightly’ appear. Changing to 128 makes it fully visible. So for some reason, this parameter also has effect.