Skip to content

Commit

Permalink
Increase thread pool size to download HDRIs faster
Browse files Browse the repository at this point in the history
  • Loading branch information
gregzaal committed Aug 24, 2022
1 parent 549ab4e commit 9ffd6f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ def draw(self, context):
col.label(
text="The only way to stop this process once you start it is to forcibly close Blender."
)
col.label(text="Due to a bug in Blender 2.8, no progress bar will be shown.")
col.label(text="Blender may become unresponsive during this process.")

col.separator()
col = layout.column(align=True)
Expand Down Expand Up @@ -2042,7 +2042,7 @@ def execute(self, context):

from concurrent.futures import ThreadPoolExecutor

executor = ThreadPoolExecutor(max_workers=12)
executor = ThreadPoolExecutor(max_workers=20)
threads = []
for i, hh in enumerate(hdrihaven_hdris):
t = executor.submit(
Expand Down

0 comments on commit 9ffd6f4

Please sign in to comment.