Skip to content

Commit

Permalink
Address VRAM usage in Shadertoy Utility (#413)
Browse files Browse the repository at this point in the history
* use default device

* Remove adapter

---------

Co-authored-by: Almar Klein <[email protected]>
  • Loading branch information
Vipitis and almarklein authored Nov 14, 2023
1 parent 7342598 commit f701760
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wgpu/utils/shadertoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,7 @@ def _prepare_render(self):
title="Shadertoy", size=self.resolution, max_fps=60
)

adapter = wgpu.gpu.request_adapter(
canvas=self._canvas, power_preference="high-performance"
)
self._device = adapter.request_device()
self._device = wgpu.utils.device.get_default_device()

self._present_context = self._canvas.get_context()

Expand Down

0 comments on commit f701760

Please sign in to comment.