Shader Editor has a significant delay after opening Translation. #65213

Open
opened 2019-05-28 01:58:23 +02:00 by Buzhe Guan · 8 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.64

Blender Version
Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-26 22:34, hash: d525c76003
Worked: (optional)

Short description of error
Shader Editor has a significant delay after opening Translation.
bandicam 2019-05-28 07-48-44-136.mp4

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.64 **Blender Version** Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-26 22:34, hash: `d525c76003` Worked: (optional) **Short description of error** Shader Editor has a significant delay after opening Translation. [bandicam 2019-05-28 07-48-44-136.mp4](https://archive.blender.org/developer/F7073405/bandicam_2019-05-28_07-48-44-136.mp4)
Author

Added subscriber: @EternalSpace

Added subscriber: @EternalSpace
Author

The 2.79 version also has the same problem.

The 2.79 version also has the same problem.
Author

Delay only when zooming.

Delay only when zooming.
Member

Added subscribers: @mont29, @lichtwerk

Added subscribers: @mont29, @lichtwerk
Member

I can notice a considerable slowdown as well.
This is not the ShaderEditor alone though, I think this applies to all parts of the Interface that allow zooming (try opening up all panels in the Properties Editor render tab and zoom in there --> same thing).

Havent checked code, I assume the font widths have to calculated, maybe they are cached for non-translated texts? Or translating itself takes up a considerable amount of time itself?
@mont29: not sure we would consider this a bug or TODO? would there be room for improvement (caching)?

I can notice a considerable slowdown as well. This is not the ShaderEditor alone though, I think this applies to all parts of the Interface that allow zooming (try opening up all panels in the Properties Editor render tab and zoom in there --> same thing). Havent checked code, I assume the font widths have to calculated, maybe they are cached for non-translated texts? Or translating itself takes up a considerable amount of time itself? @mont29: not sure we would consider this a bug or TODO? would there be room for improvement (caching)?
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Most time is spent creating textures indeed.

image.png

Most time is spent creating textures indeed. ![image.png](https://archive.blender.org/developer/F7075343/image.png)

Yeah, iirc this has already been reported (though I don’t feel like doing archeology in the tracker to find the report(s))… Key issue here is that our i18n font is much, much bigger than the one we use when UI translations are not enabled, which impacts caching of the glyphs for drawing text… I do not remember the details, but this is known issue. If someone want to work on it, it’d sure be welcomed. :)

Yeah, iirc this has already been reported (though I don’t feel like doing archeology in the tracker to find the report(s))… Key issue here is that our i18n font is much, much bigger than the one we use when UI translations are not enabled, which impacts caching of the glyphs for drawing text… I do not remember the details, but this is known issue. If someone want to work on it, it’d sure be welcomed. :)
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:25:46 +01: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
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#65213
No description provided.