r3f-performance 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
**[Changelog](https://github.com/anhldh/r3f-performace/blob/main/CHANGELOG.md)**
|
|
4
4
|
|
|
5
|
-
A
|
|
5
|
+
A easily tool to monitor the performance of your
|
|
6
6
|
[@react-three/fiber](https://github.com/pmndrs/react-three-fiber) application.
|
|
7
7
|
|
|
8
8
|
<table>
|
|
9
9
|
<tr>
|
|
10
|
-
<td>Add the <code><
|
|
10
|
+
<td>Add the <code><PerfMonitor /></code> component anywhere in your R3F Canvas.</td>
|
|
11
11
|
<td>
|
|
12
12
|
<a href="https://codesandbox.io/p/sandbox/3sqpy4">
|
|
13
13
|
<img src="https://bf3xu0otcy.ufs.sh/f/lSBP1EY5xRSnLHNlxKuvoRAdugXS39mBlIzpHEcwjKqeLFNJ" /></td>
|
|
@@ -77,12 +77,12 @@ position?: Sets the position of the panel. Options: 'top-right', 'top-left', 'bo
|
|
|
77
77
|
|
|
78
78
|
```jsx
|
|
79
79
|
import { Canvas } from "@react-three/fiber";
|
|
80
|
-
import {
|
|
80
|
+
import { PerfMonitor } from "r3f-performance";
|
|
81
81
|
|
|
82
82
|
function App() {
|
|
83
83
|
return (
|
|
84
84
|
<Canvas>
|
|
85
|
-
<
|
|
85
|
+
<PerfMonitor />
|
|
86
86
|
</Canvas>
|
|
87
87
|
);
|
|
88
88
|
}
|