News for hackers. Stuff that matters.
Re:Planet Shadertoy by deaddodo on Saturday February 24, 2018 @09:32PM (#16456798)
Seriously? I'm getting 32-36 on the iPhone X. I don't think it's resolution dependent, so I'm pretty interested in why the performance is so much less.
Re:Planet Shadertoy by westoncb on Saturday February 24, 2018 @09:38PM (#16456823)
Fragment shaders (which this is) are quite resolution dependent: they are programs which execute at each pixel, so the input size to the algorithm contained in the shader is essentially equal to the resolution (it's not strictly, since other data can be passed in which the program iterates over—but it is fairly uncommon for shaders to make heavy use of loops or recursion from what I've seen).
Re:Planet Shadertoy by deaddodo on Monday February 26, 2018 @03:36PM (#16468755)
I understand that, I'm quite acquainted with 3D programming and shaders. But I was under the impression that they were dependent on the resolution of the renderview, not the device.
Re:Planet Shadertoy by dingo_bat on Saturday February 24, 2018 @10:41PM (#16456983)
It's definitely resolution dependent. On my Galaxy S7, the frame rate is 40-45 when the screen is set to 1080p, and drops to 20fps if I increase the resolution to 1440p.
Re:Planet Shadertoy by drifkin on Saturday February 24, 2018 @10:12PM (#16456908)
Make sure Low Power Mode is off, if it's on it'll have a big effect on performance.
Re:Planet Shadertoy by deaddodo on Monday February 26, 2018 @03:34PM (#16468748)
That was it. Didn't even remember that I have it on.
Re:Planet Shadertoy by always_good on Sunday February 25, 2018 @04:04AM (#16457975)
Why wouldn't it be resolution dependent unless you specifically knew otherwise?
Re:Planet Shadertoy by deaddodo on Monday February 26, 2018 @03:34PM (#16468744)
I understood it to be dependent on the resolution of the renderview, not the device. Perhaps I'm incorrect, but the problem in this case was low power mode.
Re:Planet Shadertoy by adamnemecek on Saturday February 24, 2018 @09:36PM (#16456817)
I’m getting 60 on X. Are you using safari?
Re:Planet Shadertoy by Jyaif on Sunday February 25, 2018 @03:01AM (#16457782)
Irrelevant as on iOS Apple does not allow any other rendering engine other than Webkit.
Re:Planet Shadertoy by pdpi on Sunday February 25, 2018 @06:42AM (#16458450)
Not sure if it’s still the case, but there were limitations around JS optimisations in webviews outside Safari, so the question might actually be relevant.
Re:Planet Shadertoy by paraboul on Sunday February 25, 2018 @07:53AM (#16458683)
This is a shader, there is absolutely no JS code involved. The code runs directly on the GPU
Re:Planet Shadertoy by pdpi on Sunday February 25, 2018 @08:49AM (#16458918)
Right. My point was that, given that Apple have historically limited the optimisations available to webviews, it’s not obvious that WebGL would be exempt of similar limitations.
Re:Planet Shadertoy by melling on Saturday February 24, 2018 @10:49PM (#16457001)
I’m getting 60 fps on my iPhone X.