Skip to content

Commit

Permalink
Mobile Resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshyeahh committed Aug 25, 2024
1 parent 5995cfb commit 2840e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/canvas/Computers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const ComputersCanvas = () => {
<Canvas
frameloop='demand'
shadows
dpr={[1, 2]}
dpr={isMobile ? 0.75 : [1, 2]} // Lower resolution for mobile devices
camera={{ position: [20, 3, 5], fov: 25 }}
gl={{ preserveDrawingBuffer: true }}
>
Expand Down

0 comments on commit 2840e0f

Please sign in to comment.