refactor: comment out unused performance stats component and add styles for stats positioning
This commit is contained in:
@@ -5,7 +5,7 @@ import Controls from '../controls/controls';
|
|||||||
import { AdaptiveDpr, AdaptiveEvents, Environment } from '@react-three/drei'
|
import { AdaptiveDpr, AdaptiveEvents, Environment } from '@react-three/drei'
|
||||||
|
|
||||||
import background from "../../../assets/textures/hdr/mudroadpuresky2k.hdr";
|
import background from "../../../assets/textures/hdr/mudroadpuresky2k.hdr";
|
||||||
import { Perf } from 'r3f-perf';
|
// import { Perf } from 'r3f-perf';
|
||||||
|
|
||||||
function Setup() {
|
function Setup() {
|
||||||
return (
|
return (
|
||||||
@@ -18,7 +18,7 @@ function Setup() {
|
|||||||
|
|
||||||
<PostProcessing />
|
<PostProcessing />
|
||||||
|
|
||||||
<Perf position="bottom-left" className="scene-performance-stats"/>
|
{/* <Perf position="bottom-left" className="scene-performance-stats"/> */}
|
||||||
|
|
||||||
{/* <MovingClouds /> */}
|
{/* <MovingClouds /> */}
|
||||||
|
|
||||||
|
|||||||
@@ -134,3 +134,11 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stats{
|
||||||
|
top: auto !important;
|
||||||
|
bottom: 36px !important;
|
||||||
|
left: 12px !important;
|
||||||
|
border-radius: 6px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user