Page MenuHome

Odd Eevee performance issue
Closed, DuplicatePublicBUG

Description

System Information
Operating system: OSX 10.15.1
Graphics card: D 700

Blender Version
Broken: v2.80, v2.81 beta (07968604ab19)

Short description of error
Eevee performance drops drastically depending on order of materials on an object.

Exact steps for others to reproduce the error

  1. Open blend file
  2. Switch viewport to "Rendered"
  3. Notice performance is normal
  4. Select circle, and Select the material Material.006.
  5. Click the up arrow so that Material.006 comes before Material.001 in the list.
  6. Observe performance drops drastically

The geometry doesn't seem to matter. No errors in the terminal either. If I can help test in any other way, please let me know.

Event Timeline

I have tested the same scene on my MBP mid 2015, same OS.
With Intel Iris Pro forced - no issue
With Radeon R9 M370X forced - same issue happens

I can't reproduce this on Windows, everything runs smoothly.

System Information
Windows-10 64 Bits
GeForce GTX 1070 NVIDIA 431.70

Blender Version
2.81 (sub 15), branch: master, commit date: 2019-10-21 18:07, hash: rB388c954cb537

Cannot reproduce.

Windows 10, GTX 1080, Nvidia 441.12 drivers
Blender 2.8 (rBf6cb5f54494e) and Blender 2.81 (rB8ab6ef30ab28)

Germano Cavalcante (mano-wii) lowered the priority of this task from 90 to 80.Dec 4 2019, 3:08 PM

I also can't reproduce the problem on Windows. Must be MacOS related.

As I noted here https://developer.blender.org/T72051 if you set the metallic prop of the BSDF shader for Material.006 to .99 or less the viewport does NOT lag. Only if metallic is 1 does it lag.

MacBook Pro/AMD Radeon Pro 5500M 8 GB/Catalina 10.15.2

Lag happens in Blender 2.80.75 and 2.81.16 and 2.82.6

After some late night spelunking, I narrowed the problem down to node_shader_bsdf_principled.c where an optimized version of the principled shader is used if the node settings are exactly 1 (or not 1) for some settings. If I patch that on Apple so that the default shader is always used, the lag is gone on the rep1.blend and pinata_bug.blend files attached to these tickets. However, the archviz.blend file (a much bigger scene with lots more materials) from one of the other EEVEE lag tickets did not improve and still lagged, with the same continual calls to SCCompileShader in AMDRadeonX6000GLDriver. So the actual problem is probably in the GLSL shaders somewhere? If anyone else is interested in the patch it is here on github: https://github.com/johnthethird/blender/commit/8416412d8be9670fdeb770ec39400aba2fdcee03

Aaron Carlisle (Blendify) changed the task status from Needs Information from Developers to Confirmed.Feb 27 2020, 5:36 PM
Aaron Carlisle (Blendify) changed the subtype of this task from "Report" to "Bug".