I tried to use it with multiple canvas hoping to get separate Perf info for each canvas.
Something like
<Canvas>
<Perf />
</Canvas>
<Canvas>
<Perf />
</Canvas>
I tried an ugly solution which consist in passing the gl of useThree ( WebGLRenderer ) to each getPerf, setPerf, usePerf hooks of the store to separate the datas.
But no matter what I did it seems like they overwrite each other. And it was getiting much more complicated than what I initially hoped.
It might be a cool improvement to be able to have x in the future, if someone feel like taking a stab at it. 👍
I tried to use it with multiple canvas hoping to get separate Perf info for each canvas.
Something like
I tried an ugly solution which consist in passing the gl of useThree ( WebGLRenderer ) to each getPerf, setPerf, usePerf hooks of the store to separate the datas.
But no matter what I did it seems like they overwrite each other. And it was getiting much more complicated than what I initially hoped.
It might be a cool improvement to be able to have x in the future, if someone feel like taking a stab at it. 👍