Voronoi smooth f1 3d high CPU #91085

Closed
opened 2021-08-31 14:52:54 +02:00 by Peter Boos · 19 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GT 630M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35 (i'm using CPU)

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-19 18:36, hash: 962153dbed
Worked: 2.93.0 Alpha, branch: master, commit date: 2021-04-03 16:32, hash: 8681504f06

Short description of error
[CPU to 90% with smooth 3d veranoi]

Exact steps for others to reproduce the error

While trying to make a soap bubbles shader I noted a huge impact on my CPU.
I eventually got it down to specific settings (the default settings, smooth F1).
I tested with another version of Blender and then the CPU did not spike.
I narrowed it down to just Voronoi, and it's not even with all combinations (but the others won't give me soap).
Some other combinations in this shader gave also high CPU but not all combinations.

I'm aware 3.0 is not yet released but i hope this bug posting will improve (maybe revert) some code that was added to the Voronoi texture generator.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GT 630M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35 (i'm using CPU) **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-19 18:36, hash: `962153dbed` Worked: 2.93.0 Alpha, branch: master, commit date: 2021-04-03 16:32, hash: `8681504f06` **Short description of error** [CPU to 90% with smooth 3d veranoi] **Exact steps for others to reproduce the error** While trying to make a soap bubbles shader I noted a huge impact on my CPU. I eventually got it down to specific settings (the default settings, smooth F1). I tested with another version of Blender and then the CPU did not spike. I narrowed it down to just Voronoi, and it's not even with all combinations (but the others won't give me soap). Some other combinations in this shader gave also high CPU but not all combinations. I'm aware 3.0 is not yet released but i hope this bug posting will improve (maybe revert) some code that was added to the Voronoi texture generator.
Author

Added subscriber: @PeterBoos

Added subscriber: @PeterBoos
Author

voronoi-bug.blend and here is file showing the bug in 3.0

[voronoi-bug.blend](https://archive.blender.org/developer/F10357606/voronoi-bug.blend) and here is file showing the bug in 3.0

Added subscribers: @PratikPB2123, @iss

Added subscribers: @PratikPB2123, @iss

Unfortunately I can't reproduce any difference between 3.0 and 2.93

@PratikPB2123 Can you reproduce?

Unfortunately I can't reproduce any difference between 3.0 and 2.93 @PratikPB2123 Can you reproduce?
Member

Hi @iss , no difference between 2.93LTS (2021-06-02) & 3.0.0 (bd67bf4d106e)

I have also checked with old 2.93 build de06cb8559. Still it shows almost same CPU usage (in task manager -> performance tab)


System Information

Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
Hi @iss , no difference between 2.93LTS (2021-06-02) & 3.0.0 (`bd67bf4d106e`) I have also checked with old 2.93 build de06cb8559. Still it shows almost same CPU usage (in task manager -> performance tab) --- **System Information** ```Operating system : Windows-10-10.0.18362-SP0 64 Bits Graphics card : AMD Radeon(TM) 535 ATI Technologies .```

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

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

Really not sure what could cause this, but I don't think it's bug in Blender really.

@PeterBoos Can you click on File > Defaults > Load Factory Settings, open file voronoi-bug.blend and re-check if this issue happens? I am thinking some addon doing something strange, but even that is unlikely.

Really not sure what could cause this, but I don't think it's bug in Blender really. @PeterBoos Can you click on File > Defaults > Load Factory Settings, open file `voronoi-bug.blend` and re-check if this issue happens? I am thinking some addon doing something strange, but even that is unlikely.
Author

With factory settings it still happens.
I noticed in the viewport settings in the blend file, has to be set to rendered (ea cycles preview). (this wasnt the case for the voronoi-bug.blend files (sorry)
The varanoi must be connected on its color (yellow).
and it must be in cycles, Eevee doesnt have the problem.

Also my machine is CPU i dont have a good graphics card but i got decent cpu.

Not sure the cause, the older blender didnt show this behaviour (here the fans spin up), its over after the 32 samples are done, but for the older blender version the cpu doesnt spike.

With factory settings it still happens. I noticed in the viewport settings in the blend file, has to be set to rendered (ea cycles preview). (this wasnt the case for the voronoi-bug.blend files (sorry) The varanoi must be connected on its color (yellow). and it must be in cycles, Eevee doesnt have the problem. Also my machine is CPU i dont have a good graphics card but i got decent cpu. Not sure the cause, the older blender didnt show this behaviour (here the fans spin up), its over after the 32 samples are done, but for the older blender version the cpu doesnt spike.

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

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

Checking again, I can reproduce quite high CPU usage when I coved whole viewport with mesh surface, but that is to be expected I think. At least older versions do behave exactly same here.

In #91085#1215938, @PeterBoos wrote:
Not sure the cause, the older blender didnt show this behaviour (here the fans spin up), its over after the 32 samples are done, but for the older blender version the cpu doesnt spike.

Question is: is the performance better in newer version or is it the same? This could have been some optimization in cycles that uses CPU better. But again I don't see difference between 2.93 and 3.0.

Checking again, I can reproduce quite high CPU usage when I coved whole viewport with mesh surface, but that is to be expected I think. At least older versions do behave exactly same here. > In #91085#1215938, @PeterBoos wrote: > Not sure the cause, the older blender didnt show this behaviour (here the fans spin up), its over after the 32 samples are done, but for the older blender version the cpu doesnt spike. Question is: is the performance better in newer version or is it the same? This could have been some optimization in cycles that uses CPU better. But again I don't see difference between 2.93 and 3.0.

Also forgot to mention, that today cycles-x has landed in master so please check if you still have issues in latest alpha build from https://builder.blender.org/download/daily/

AFAIK it improves mainly GPU rendering but still give it a try.

Also forgot to mention, that today cycles-x has landed in master so please check if you still have issues in latest alpha build from https://builder.blender.org/download/daily/ AFAIK it improves mainly GPU rendering but still give it a try.
Author

Hm tested it again apperantly smoothed F1 varanoi is something CPU intensive. (ea something that can be put endless reays into or something like that. And since the alpha version uses pretty high render samples by default (like 1000 instead of 4 or so), this is i thnk what keeps it bussy.

The only thing strange to me here is that EEVEE shows smoothed F1 in flash.
So i think the smoothing itself shouldnt be delaying that much, a textured or a varanoi should be about the same. maybe its something that can looked at, but its possible to reduce.

Another side thing i wonder perhaps the CPU is now put better at work and thus spiking, instead of slower resolving the viewport, although then still why varanoi and the others less ?.

Hm tested it again apperantly smoothed F1 varanoi is something CPU intensive. (ea something that can be put endless reays into or something like that. And since the alpha version uses pretty high render samples by default (like 1000 instead of 4 or so), this is i thnk what keeps it bussy. The only thing strange to me here is that EEVEE shows smoothed F1 in flash. So i think the smoothing itself shouldnt be delaying that much, a textured or a varanoi should be about the same. maybe its something that can looked at, but its possible to reduce. Another side thing i wonder perhaps the CPU is now put better at work and thus spiking, instead of slower resolving the viewport, although then still why varanoi and the others less ?.

In #91085#1225344, @PeterBoos wrote:
The only thing strange to me here is that EEVEE shows smoothed F1 in flash.
So i think the smoothing itself shouldnt be delaying that much, a textured or a varanoi should be about the same. maybe its something that can looked at, but its possible to reduce.

Eevee is implemented with GPU shaders, so it can't really utilize CPU. Also eevee and cycles are fundamentally different engines.

Can you somehow test if with higher CPU usage you get faster render time? Perhaps render animation of 100 frames.

> In #91085#1225344, @PeterBoos wrote: > The only thing strange to me here is that EEVEE shows smoothed F1 in flash. > So i think the smoothing itself shouldnt be delaying that much, a textured or a varanoi should be about the same. maybe its something that can looked at, but its possible to reduce. Eevee is implemented with GPU shaders, so it can't really utilize CPU. Also eevee and cycles are fundamentally different engines. Can you somehow test if with higher CPU usage you get faster render time? Perhaps render animation of 100 frames.

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

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

I know their diffrent engines, but the color math behind the nodes is most likely the same.
its viewport not about final renders.

I know their diffrent engines, but the color math behind the nodes is most likely the same. its viewport not about final renders.

Sorry for late response, Just to clarify, nodes themselves don't have builtin math, they only describe shading for render engine. Eevee does this on GPU, cycles can do it on GPU or CPU but in both cases math would be different to Eevee.

Also you mentioned, this happens only with rendered shading which is almost same as if you would render the image with F12 key. That's why I asked for performance comparison with cycles. Since you say this is regression, and I assume this may be improvement. And since I can't reproduce the issue, I have to rely on data provided by you.

Is this still an issue?

Sorry for late response, Just to clarify, nodes themselves don't have builtin math, they only describe shading for render engine. Eevee does this on GPU, cycles can do it on GPU or CPU but in both cases math would be different to Eevee. Also you mentioned, this happens only with rendered shading which is almost same as if you would render the image with F12 key. That's why I asked for performance comparison with cycles. Since you say this is regression, and I assume this may be improvement. And since I can't reproduce the issue, I have to rely on data provided by you. Is this still an issue?
Contributor

Added subscriber: @Raimund58

Added subscriber: @Raimund58
Contributor

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

Changed status from 'Needs User Info' to: 'Archived'
Contributor

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
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
Interest: X11
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
4 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#91085
No description provided.