这是indexloc提供的服务,不要输入任何密码
Skip to content

Use multiple Perf with multiple Canvas #60

@AlaricBaraou

Description

@AlaricBaraou

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. 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions