Tip 1:Recently I switched from rtx 2060 super to rtx 4070 ti super(core@3060MHz) and I noticed immediately that my CPU(Intel 11700F@8c16t@4.4GHz) is not enough performant for new GPU during generating depth maps phase.
So I played a little bit with one tweak "
BuildDepthMaps/max_gpu_multiplier". If I am correct, this parameter means how many concurrent kernels will be running on GPU. Default value is 2...you can see this as [GPU 1], [GPU 2] in logs.
I quickly measured time of one or two batches on medium, high and ultra high quality with different parameter values(2/4/6/8)...[GPU 1]..[GPU 8].
For my hardware and project(ground photogrammetry from hand, 435x 18Mpix), on medium quality it make sense to increase the value to 4. On high to 6 and on ultra high to 8.
My depth maps processing times decreesed to
~92.8% for medium, ~86.3% for high and ~84.8% for ultra high.
In attachment(one batch ultra high depth maps quality) you can see the CPU and GPU utilization, where GPU graph is
more compact and with
higher bars. Also higher tweak values means more vram allocation.
I think higher values than 6-8 can make some difference only in specific cases like very unbalanced CPU/GPU systems or low/very low depth maps quality or in projects with very high Mpix photos.
Let me/us know what speed increasements you see in your projects with different tweak values, you can post also what CPU and GPU do you have.
UPDATE:
Tip 2:I tried another tweak
"main/gpu_enable_opencl" set to true and
"main/gpu_enable_cuda" set to false.
This gives me another performance boost. I tested only ultra high depth maps quality with 2 and 8 max_gpu_multiplier. Here are the results:
CUDA, 2x - 77.6s ...default Metashape, without tweeks
CUDA, 8x - 69.1s
OpenCL, 8x - 54.7s ...time decreased to
70.48%
...second screenshot in attachment.
...what is interesting in my case is GPU utilization which fluctuated only between ~45-75%. GPU memory allocation was also much lower than using CUDA.
I will also try selecting pairs and matching points stages, if I see some boost.