Is it possible to use React inside of worker with offscreen canvas?

Hello community,

I try to improve the performance further and further. It looks much better now than some weeks earlier. I stumbled across the method to use a worker in another thread. My current problem is that I use React to interact with the scene dynamically. I am wondering if it is possible to use React Hooks with imports and exports inside of the worker? That would be very beneficial for me.

Thanks for your help.

Best

Well this is not really a Babylon question but more a React one :wink:

I thought that maybe there is someone who encountered a similar problem with integrating offset canvas.

But sure, you’re right. Scusi.

No need to apologize :wink: