Open
Description
The bug is when two objects exist in the same viewport with two different material schemes fps goes from 60fps to 29fps (for me):
- Scene has directional light with a shadow map
- Scene has two objects: 1 object is DiffuseMap and the other is Diffuse (color)
Just copying over from Forum topic: http://hub.jmonkeyengine.org/t/settexture-diffusemap-way-faster-than-setcolor-diffuse/31066/3
Test case
See gist: https://gist.github.com/andychase/be168144ce117c653b5a
- Needs: Textures/planter.png
- press "Z" and "X" to switch on/off
Workaround
In the mean time you can use the DirectionalShadowFilter with a FilterPostProcessor. It doesn't exhibit the issue and you should have the same visual result.