Page 4 of 5

Re: Simple cloud layer SceneNode

Posted: Mon Sep 29, 2014 8:42 pm
by Nadro
It's a problem with Texture Matrix uniform in ES2 (we use built-in shaders for emulate fixed pipeline materials, but not all options are implemented and/or tested). You shouldn't use built-in shaders in ES2, but your own shaders optimized for your product.

Re: Simple cloud layer SceneNode

Posted: Wed Oct 01, 2014 5:26 pm
by AreaScout
It's not only that this animation is not working, OGLES2 has constantly less speed then OGLES1 it's 5fps, i don't know if this has something to do with the animation problem, but my bet is also the shader for the slowness

RG

Re: Simple cloud layer SceneNode

Posted: Wed Oct 01, 2014 6:10 pm
by CuteAlien
That might also depend a lot on the device you use for testing. I have 2 devices here where the speed is way different. One device is running some code 6 times faster in OGLES2 than OGLES1 while the other device can for the same code be slightly faster with OGLES1.

Re: Simple cloud layer SceneNode

Posted: Wed Oct 01, 2014 7:00 pm
by AreaScout
Well that could be the painful truth, so i have to dig in more into Irrlicht shaders or stay on OGLES1, thx anyway for your efforts :)

RG

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 7:41 am
by Nadro
OGLES2 should works faster than OGLES1 on each device with GPU better than Adreno 205. For the best performance in OGLES2 it's also important to use custom - optimized shaders instead of built-in materials.

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 11:04 am
by AreaScout
Double checked but it's not the case on my device, like i say'd OGLES1 is 5 fps faster then OGLES2, so what else could that be ? Did try this also with examples i.e 08.SpecialFX

RG

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 11:38 am
by Nadro
Do you use built-in materials?

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 3:19 pm
by AreaScout
Yes, but it's the same for the examples

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 3:24 pm
by Nadro
But in OGL ES1 you can't prepare custom - optimized materials, thats why you should use OGL ES2 driver if you don't have to support old devices. In real games, where you will use custom shaders ES2 will be much faster.

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 3:49 pm
by CuteAlien
Yeah, ES2 generally faster ... unless the drivers of your device are bad - which unfortunately still happens once in a while. In my case I think the problem was that my device (moto g) ignored the static mesh flag in ES2 and uploaded geometry constantly (I wouldn't swear 100% that's the problem, but it looked like that when I debugged & profiled it a few months ago). Thought it already got faster in last tests - not sure if that latest improvement was because of Nadro's improvements in Irrlicht or if my MotoG updated it's driver - didn't profile again yet :-)

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 4:29 pm
by AreaScout
Humm i know that ES2 is normaly the better choose, i mean now that i am using ES1, 2D drawing on hw scaled Images, filters are not working and i did some small projects with shaders in the past too, so it's not entirly new ^^

To be honest, with Irrlicht it's the first time that i directly compare ES1 and ES2, so of corse it could be that the drivers lags in speed, so i am confused now did you guy's are having the same problem with the animation on your devices or is just me and untestet from you side ?

RG

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 4:51 pm
by CuteAlien
I've not tested that yet.

Re: Simple cloud layer SceneNode

Posted: Thu Oct 02, 2014 6:28 pm
by Nadro
This node should works properly on ES2 driver with the latest ogl-es branch revision.
so i am confused now did you guy's are having the same problem with the animation on your devices or is just me and untestet from you side
Do you mean cloud layer scene node animation or general ES2 driver performance?

Re: Simple cloud layer SceneNode

Posted: Fri Oct 03, 2014 6:31 am
by AreaScout
Nadro wrote:This node should works properly on ES2 driver with the latest ogl-es branch revision.
so i am confused now did you guy's are having the same problem with the animation on your devices or is just me and untestet from you side
Do you mean cloud layer scene node animation or general ES2 driver performance?
cloud layer scene, CuteAlien already pointed out that his devices's are faster on ES2

Re: Simple cloud layer SceneNode

Posted: Fri Oct 03, 2014 7:47 am
by Nadro
OK, so as I said before with the latest ogl-es revision cloud layer scene node should works fine :)