WIP: ImageEngine: Improve Performance Textures smaller than 12K #108619

Draft
Jeroen Bakker wants to merge 12 commits from Jeroen-Bakker/blender:image-engine-performance into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

This PR uses an optimized code-path for textures that fit on a GPU.
Normally GPU textures are limited around 12-16K (including a safe margin
as it depends on texture formats.

The performance increase depends on the platform and operation.
Zooming/panning (what is a known bottleneck of the previous implementation
can be 10-100 times faster.

TODO

  • UDIM textures
  • Tiling
  • Swizzling
  • Compositor view offset
This PR uses an optimized code-path for textures that fit on a GPU. Normally GPU textures are limited around 12-16K (including a safe margin as it depends on texture formats. The performance increase depends on the platform and operation. Zooming/panning (what is a known bottleneck of the previous implementation can be 10-100 times faster. **TODO** - [x] UDIM textures - [x] Tiling - [x] Swizzling - [ ] Compositor view offset
Jeroen Bakker added this to the 4.0 milestone 2023-06-05 13:32:26 +02:00
Jeroen Bakker self-assigned this 2023-06-05 13:32:26 +02:00
Jeroen Bakker added 1 commit 2023-06-05 13:32:36 +02:00
Jeroen Bakker added this to the EEVEE & Viewport project 2023-06-05 13:37:24 +02:00
Jeroen Bakker added 1 commit 2023-06-05 13:49:00 +02:00
Jeroen Bakker added 1 commit 2023-06-05 15:22:50 +02:00
Jeroen Bakker added 2 commits 2023-06-06 12:55:36 +02:00
Jeroen Bakker added 1 commit 2023-06-06 13:07:23 +02:00
Jeroen Bakker added 2 commits 2023-06-06 13:54:53 +02:00
Jeroen Bakker added 1 commit 2023-06-06 14:19:02 +02:00
Jeroen Bakker changed title from WIP: Image: Improve Performance 8K Textures And Smaller to WIP: Image: Improve Performance 12K Textures And Smaller 2023-06-07 11:27:23 +02:00
Jeroen Bakker changed title from WIP: Image: Improve Performance 12K Textures And Smaller to WIP: ImageEngine: Improve Performance 12K Textures And Smaller 2023-06-07 11:27:42 +02:00
Jeroen Bakker changed title from WIP: ImageEngine: Improve Performance 12K Textures And Smaller to WIP: ImageEngine: Improve Performance Textures smaller than 12K 2023-06-07 11:28:08 +02:00
Jeroen Bakker added 2 commits 2023-06-20 13:26:05 +02:00
Jeroen Bakker added 1 commit 2023-06-20 13:40:21 +02:00
This pull request has changes conflicting with the target branch.
  • source/blender/draw/engines/image/image_drawing_mode.hh
  • source/blender/draw/engines/image/image_engine.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u image-engine-performance:Jeroen-Bakker-image-engine-performance
git checkout Jeroen-Bakker-image-engine-performance
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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 Assignees
1 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#108619
No description provided.