Skip to content

Performance issue Html component #34

@rlems

Description

@rlems

I see the Html component used causes some performance problems for me.
I currently use 14 A11y components in my code and it causes my fps to drop to around 3, while without using A11y it stays close to 60.
Now i've copied your code and created my own A11y component and saw that the main culprit for the drop in fps is line 135 in /src/Html.tsx: camera.updateMatrixWorld();.
This operation seems heavy to execute every frame for every A11y component. Without this line the location for the a11y component seems to be correct, so is it necessary to keep?

I tested it in Chrome and Safari on mac.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions