Geometry Nodes: Sample UV Surface node is slow when UV Map is large #103779

Closed
opened 2023-01-10 12:37:54 +01:00 by Demeter Dzadik · 9 comments
Member

System Information
Operating system: Linux-6.1.3-gentoo-x86_64-Intel-R-_Core-TM-i9-9900K_CPU@_3.60GHz-with-glibc2.36 64 Bits
Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 525.60.13

Blender Version
Broken: version: 3.5.0 Alpha, branch: HEAD (modified), commit date: 2023-01-09 18:05, hash: b314d92e7d

Short description of error
While exploring the possibility of scaling a UVMap up far beyond the usual 0-1 scale in a pursuit of making better use of the space for more precision, I noticed that the Sample UV Surface node suddenly takes 3 seconds to evaluate, just because I scaled up the UVMap by 100x.
Perhaps this is working as intended / is an inherent, mathematical limitation, I'm not sure.

Exact steps for others to reproduce the error

The evaluation time reported for the sample node goes from 0.47ms to 3150ms.

**System Information** Operating system: Linux-6.1.3-gentoo-x86_64-Intel-R-_Core-TM-_i9-9900K_CPU_@_3.60GHz-with-glibc2.36 64 Bits Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 525.60.13 **Blender Version** Broken: version: 3.5.0 Alpha, branch: HEAD (modified), commit date: 2023-01-09 18:05, hash: `b314d92e7d` **Short description of error** While exploring the possibility of scaling a UVMap up far beyond the usual 0-1 scale in a pursuit of making better use of the space for more precision, I noticed that the Sample UV Surface node suddenly takes 3 seconds to evaluate, just because I scaled up the UVMap by 100x. Perhaps this is working as intended / is an inherent, mathematical limitation, I'm not sure. **Exact steps for others to reproduce the error** - File with regular size UV map (in 0-1 coordinate range): [phil_test_regular_uv_scale.blend](https://archive.blender.org/developer/F14137421/phil_test_regular_uv_scale.blend) - File with big UV map (scaled 100x): [phil_test.blend](https://archive.blender.org/developer/F14137420/phil_test.blend) The evaluation time reported for the sample node goes from 0.47ms to 3150ms.
Author
Member

Added subscriber: @Mets

Added subscriber: @Mets

Added subscriber: @mod_moder

Added subscriber: @mod_moder

Floating precision means you don't care about scale for precision.

Floating precision means you don't care about scale for precision.

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

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

I can confirm the direct dependence of the speed of work on the size of the space

I can confirm the direct dependence of the speed of work on the size of the space
Iliya Katushenock changed title from GeoNodes: Sample UV Surface node is slow when UV Map is large to Geometry Nodes: Sample UV Surface node is slow when UV Map is large 2023-01-10 13:46:46 +01:00

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Added subscriber: @CharlieJolly

Added subscriber: @CharlieJolly
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:14 +01:00
Iliya Katushenock added
Status
Confirmed
and removed
Status
Needs Info from Developers
labels 2023-02-22 12:53:15 +01:00

Confirmed issue. Now the node algorithm has not the best design and gives complexity:
Total loop trinagles * loop trinagle sizes ^ 2D axis + Total loop trinagles * Map lookup function * Algorithm for rechecking sampling by found elements

Confirmed issue. Now the node algorithm has not the best design and gives complexity: `Total loop trinagles` * `loop trinagle sizes` ^ `2D axis` + `Total loop trinagles` * `Map lookup function` * `Algorithm for rechecking sampling by found elements`
Iliya Katushenock added
Type
Known Issue
and removed
Type
Report
labels 2023-04-08 16:45:37 +02:00

I have opened an task to merge all reports related to this issue #106713. This is currently a limitation of the implementation, so I'll close this as a known limitation. You can subscribe to #106713 manually to receive notifications.

I have opened an task to merge all reports related to this issue https://projects.blender.org/blender/blender/issues/106713. This is currently a limitation of the implementation, so I'll close this as a known limitation. You can subscribe to https://projects.blender.org/blender/blender/issues/106713 manually to receive notifications.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-04-08 16:45:46 +02:00
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
3 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#103779
No description provided.