EEVEE: long background render times create sluggish viewport #71398

Closed
opened 2019-11-06 23:32:05 +01:00 by Jean First · 19 comments

System Information
Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 560X OpenGL Engine ATI Technologies Inc. 4.1 ATI-2.11.20

Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-04 20:01, hash: ef7fd50f8a
Worked: (optional)

Short description of error
The EEVEE background render times at (250ms) create a sluggish viewport. I strippeed away as much as possible, so deleting a material / modifier or hiding an element will restore the background render times to less then 10ms. Also moving a mesh (Part1 or Part2) out of the "Eyes" collection the viewport speed is ok again. But very oddly the order of adding any of these meshes back to the "Eyes collection" - so first Part1, then Part2 vs. first Part2, then Part1) makes the viewport behave correctly or very sluggish.

Exact steps for others to reproduce the error

  1. open the file
  2. rotate in the viewport

pinata_Bug.blend

Screenshot 2019-11-06 at 23.09.19.png

**System Information** Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 560X OpenGL Engine ATI Technologies Inc. 4.1 ATI-2.11.20 **Blender Version** Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-04 20:01, hash: `ef7fd50f8a` Worked: (optional) **Short description of error** The EEVEE background render times at (250ms) create a sluggish viewport. I strippeed away as much as possible, so deleting a material / modifier or hiding an element will restore the background render times to less then 10ms. Also moving a mesh (Part1 or Part2) out of the "Eyes" collection the viewport speed is ok again. But very oddly the order of adding any of these meshes back to the "Eyes collection" - so first Part1, then Part2 vs. first Part2, then Part1) makes the viewport behave correctly or very sluggish. **Exact steps for others to reproduce the error** 1) open the file 2) rotate in the viewport [pinata_Bug.blend](https://archive.blender.org/developer/F7966661/pinata_Bug.blend) ![Screenshot 2019-11-06 at 23.09.19.png](https://archive.blender.org/developer/F7966668/Screenshot_2019-11-06_at_23.09.19.png)
Author

Added subscriber: @robbott

Added subscriber: @robbott
Author

Maybe related to #71325

Maybe related to #71325
Author

maybe related to #70445

maybe related to #70445
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

When I open this file, the viewport performance seems to be just fine. Has this been fixed?
Can you show the issue in a screen recording somehow?

When I open this file, the viewport performance seems to be just fine. Has this been fixed? Can you show the issue in a screen recording somehow?
Author

I think this is a OSX specific bug. Using Instruments.app I can see the function SCCompileShader using all the cpu resources. I tried to track it down to a specific setup or shader, but I was not yet able to get to the bottom of it. The problem could be the same as to point 5 on https://blog.jimmymakesstuff.com/2017/02/a-very-peculiar-osx-opengl-sdl2-bug.html . Maybe someone can give me a hint how to get to the bottom of it.

I can still reproduce it with:
Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-09 16:07, hash: 9b920938bb

Here you can see the 100% cpu usage in Instruments.app:
Screenshot 2020-01-09 at 18.47.52.jpg

I think this is a OSX specific bug. Using Instruments.app I can see the function SCCompileShader using all the cpu resources. I tried to track it down to a specific setup or shader, but I was not yet able to get to the bottom of it. The problem could be the same as to point 5 on https://blog.jimmymakesstuff.com/2017/02/a-very-peculiar-osx-opengl-sdl2-bug.html . Maybe someone can give me a hint how to get to the bottom of it. I can still reproduce it with: Broken: version: 2.82 (sub 6), branch: master, commit date: 2020-01-09 16:07, hash: `9b920938bb` Here you can see the 100% cpu usage in Instruments.app: ![Screenshot 2020-01-09 at 18.47.52.jpg](https://archive.blender.org/developer/F8267699/Screenshot_2020-01-09_at_18.47.52.jpg)
Author

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @JohnTheThird

Added subscriber: @JohnTheThird

On my system the pinanta_bug.blend file exhibits the viewport lag, but if you switch the material of the Body object (Pinata_KM_20191105) Blend Mode: Alpha Blend, the lag disappears. Any of the other blend modes exhibit the lag. You can also fix the lag by setting the metallic property to .99 or less.

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

On my system the pinanta_bug.blend file exhibits the viewport lag, but if you switch the material of the Body object (Pinata_KM_20191105) Blend Mode: Alpha Blend, the lag disappears. Any of the other blend modes exhibit the lag. You can also fix the lag by setting the metallic property to .99 or less. MacBook Pro/AMD Radeon Pro 5500M 8 GB/Catalina 10.15.2/Blender 2.82.6

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Confirmed' to: 'Needs Triage'

Changed status from 'Confirmed' to: 'Needs Triage'

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

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

Added subscriber: @bblanimation

Added subscriber: @bblanimation

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Some improvements have been made in this area (such as 96eab08755).
Can anyone confirm if this problem was fixed in the latest builds?

Some improvements have been made in this area (such as 96eab08755). Can anyone confirm if this problem was fixed in the latest builds?
Author

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Jean First self-assigned this 2020-06-05 04:03:00 +02:00
Author

Bug seems fixed. Tested with c7329da14b . Thanks a lot.

Bug seems fixed. Tested with c7329da14b . Thanks a lot.
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#71398
No description provided.