Hello everyone,
I have a project I'm doing which I hope to get onto the store at some point. At the moment i'm struggling through some image processing/manipulation where i'm iterating over every pixel in an image (Image.setPixel(x,y,color)).
For small images it can finish relatively quickly like in about 30 seconds to 1 min. But as the image size gets larger I've had it take as long as 10-15 minutes. And this is on my Ryzen 3900X with 64gb of ram. I still have more code to add in to polish it out which may raise this by a factor of 4 and maybe even 16.
All this has me thinking I need to offload this part of the process and have it be done in C++ as either a plugin or maybe a dll? And then hopefully that plugin or dll can be called from my existing Daz Scripts passing in the needed params?
I am not a C++ coder and never done anything with DLLs - which is why I started doing this project in Daz Script in the first place.But if there's no way to increase the processing speed, then I may be forced to anyway.
Assuming for arguments sake there is a way to do this, would I use DzProcess() to make the call to that plugin/dll, or is there another way I haven't seen yet?
Thanks for any light anyone can shed on this.