VolumeData::AttachVolumeDataFake() in latest C4D 2024 API
-
Hi,
I noticed that, with the last C4D 2024 update, VolumeData::AttachVolumeDataFake() has two new parameters: Int32 fakeCurrentThreadIdx and Int32 fakeThreadCount. These are not documented, and not shown in the code snippet.Are these to fix the known issues with sampling a BaseShader from multiple threads (https://developers.maxon.net/forum/topic/12521/sample-a-shader-in-3d-space/15?_=1702535567135)? Will they allow me to sample multi-threaded again? What if I don't want to rewrite that code and decide to just continue sampling my shader single-threaded, do I just have to pass 0 as fakeCurrentThreadIdx and 1 as fakeThreadCount?
Cheers,
Frank -
Hi frank, thanks for reporting, documentation will be adjusted.
- fakeCurrentThreadIdx: Previously this value was stored in renderdata.RDATA_VDFAKE_CURRENTTHREAD. Now the parameter is passed directly for speedup.
- fakeThreadCount: Previously this value was stored in renderdata.RDATA_VDFAKE_THREADCOUNT. Now the parameter is passed directly for speedup.
So it's only for speedup reason it does not fix your issue with TexData.
@fwilleke80 said in VolumeData::AttachVolumeDataFake() in latest C4D 2024 API:
What if I don't want to rewrite that code and decide to just continue sampling my shader single-threaded, do I just have to pass 0 as fakeCurrentThreadIdx and 1 as fakeThreadCount?
Correct.
Cheers,
Maxime. -
Super, thank you!