TAO wrote: Thu Feb 11, 2021 7:25 pm
Step to reproduce the issue.
1- Select LuxCore as the renderer
2- Select any 16K/bigger HDRI as an environment map
3- Try to change the ENV gamma
Issues:
First, changing parameters is taken too much time compared to other renderers with the exact same steps.
Second, After a few try blender/3dsmax/LuxCore getting unstable and most likely crashes.
On my system (32 GB RAM) I do not get a crash when following your steps, however I do notice that while re-using the same viewport render session, changing the ENV gamma increases memory usage each time a unique value for gamma is entered (also, changing the gamma is very slow and cannot be done in realtime - I have to enter a value on the keyboard).
I can repeat this process and see the memory usage climbing in Process Explorer. However, if I re-enter a gamma value that I already used, it is both much faster, and also the memory usage does not increase. Thus I can concluded that these 'images' are cached somehow, and each unique gamma-adjusted image is kept in memory.
Once I go back to solid view, the memory used by all maps is freed, and goes back to the same level as before the viewport render started.
I guess your crash happens when your memory is filled? I could not repro a crash, I think Windows just keeps resizing my paging file as it gets slower and slower each time I increase a new gamma.
You can see in this image, I increase the gamma from 1.0, 1.01, 1.02, 1.03, 1.04, 1.05, 1.06, 1.07, 1.08, 1.09, 1.10.
Then there is a small plateau where I go back and repeat each one of these previous values.
Then I increase 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 - things start to really slow down as I hit my physical memory limit and it starts paging - 1.20, 1.21, 1.22, 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30
And finally you can see when I go back to solid view, all the memory is freed.