Page MenuHome

IMB_scaleImBuf super slow against large png files.
Closed, ArchivedPublic

Description

System Information
Operating system: Linux (Arch)
Graphics card: GTX970
CPU: Intel i7-4970k
RAM: 16GB

Blender Version
Broken: Blender 3.1.1, build hash: d91843f3b6c6

Short description of error

Blender hangs for a few minutes when reading hudge (~0.6 Gpix) png textures (PNG 31463x21627 31463x21627+0+0 8-bit sRGB 7.8065MiB)

Exact steps for others to reproduce the error

  • import hudge png as plane and save/load the file.

Perf record during the hang

Event Timeline

IMB_scaleImBuf is a function that resizes the image. It is not common to be called when importing an image as a plane, but it can happen when the GPU resources do not support such a scale.

Looking at the code, IMB_scaleImBuf has a complexity that can be really slow in extreme cases, but it works as designed and doesn't seem to have a bug.

So, thanks for the report, but the issue reported here is not a bug in current behavior.

While we do continue to work on improving performance in general, potential performance improvements are not handled as bug reports.

To improve performance, consider using smaller textures.


For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

bartus sz (bartus) added a comment.EditedApr 4 2022, 11:50 AM

Thanks for clarifying. The problem in fact occurs when switching viewport from workbench to cycles, I'll take a look - maybe some optimization can be done on a low code budget.