I've define that my games is extremely slow with enabled shadows on old mobile devices (Samsung galaxy S4, IPhone 5). When I turn off shadows it's improving performance greatly.
Does any one know how to detect slow GPU to turn off shadows completely on slow devices or how to improve shadow performance?
I've try to use diferrent shadow.mapSize
on lights and shadowMap.type
on renderer and it dosen't improve performance.
Some details:
I use PerspectiveCamera
and WebGLRenderer
with render size 1700x667.
Used lights: new THREE.AmbientLight(0xffffff, 0.7)
and new THREE.SpotLight(0xffffff, 0.4, 4000, 100)
Used materials: MeshPhongMaterial