Skip to content

Performance issue with DiffuseMap/DiffuseColor & directional light/shadow map #247

Open
@andychase

Description

@andychase

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSomething that is supposed to work, but doesn't. Less severe than a "bug"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions