Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12
Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-18 21:28, hash: rB93cc89247010
Worked: (newest version of Blender that worked as expected)
Load a scene with a 16k hdri
with viewport rendering happening, try and rotate the hdri environment using a mapping node:
now change the world surface setting sampling method to manual, and the map resolution to 1024
message will appear:
now rotate the hdri again. It'll be much more responsive.
now in the python console enter:
bpy.data.scenes['Scene'].world.cycles.sample_map_resolution = 15360
Notice the message 'updating lights' didn't appear in the viewport.
rotate again, it's still responsive because cycles is still using the 1024 manually entered.
Now restart the viewport render by clicking on solid viewport mode and back to rendered viewport mode
Rotate again. Still responsive. Even though the viewport has been restarted, cycles is still using the last manually entered value of 1024.