Odd Eevee performance issue #71325

Closed
opened 2019-11-03 21:21:31 +01:00 by Dinesh Kumar · 13 comments

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

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

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

Exact steps for others to reproduce the error
rep1.blend

  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.

**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** [rep1.blend](https://archive.blender.org/developer/F7920488/rep1.blend) 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.
Author

Added subscriber: @DineshKumar

Added subscriber: @DineshKumar
Author

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 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

Added subscriber: @filibis

Added subscriber: @filibis

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: 388c954cb5

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: `388c954cb5`

Added subscriber: @D7470

Added subscriber: @D7470

Cannot reproduce.

Windows 10, GTX 1080, Nvidia 441.12 drivers
Blender 2.8 (f6cb5f5449) and Blender 2.81 (8ab6ef30ab)

Cannot reproduce. Windows 10, GTX 1080, Nvidia 441.12 drivers Blender 2.8 (**f6cb5f5449**) and Blender 2.81 (**8ab6ef30ab**)

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

Added subscriber: @JohnTheThird

Added subscriber: @JohnTheThird

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

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: 8416412d8b

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
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Closed as duplicate of #66231

Closed as duplicate of #66231
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#71325
No description provided.