Is it able to bake textures using multithreading in C++?

Is it able to bake textures using multithreading in C++?

xiesansi
Enthusiast Enthusiast
306 Views
1 Reply
Message 1 of 2

Is it able to bake textures using multithreading in C++?

xiesansi
Enthusiast
Enthusiast

Hi,

 

I'm trying to accelerate my plugin, which could be used to export materials and textures.

 

I tried to bake a texture map using multithreading like:

mTexmap->RenderBitmap(t, mBitmap.get(), mBitmapInfo->Width(), true);

 

it works well during my test but it crashes in large scenes

 

I wonder if multithread could be used to bake textures?

any conflict like it is not allowed to bake textures with the same image file?

0 Likes
307 Views
1 Reply
Reply (1)
Message 2 of 2

klvnk
Collaborator
Collaborator

have you read the Thread Safety in sdk best practices ? it may shed some light on your situation.

0 Likes