Skip to content

Commit 39957f2

Browse files
committed
Enhance WebGLRenderer configuration with high-performance power preference
1 parent e4dde02 commit 39957f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ camera.position.set(
138138
);
139139

140140
// Set up the renderer
141-
const renderer = new THREE.WebGLRenderer({ antialias: true });
141+
const renderer = new THREE.WebGLRenderer({
142+
antialias: true,
143+
powerPreference: "high-performance"
144+
});
142145
renderer.setSize(window.innerWidth, window.innerHeight);
143146
// Remove the solid background color - we'll use a gradient background instead
144147

0 commit comments

Comments
 (0)