Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address VRAM usage in Shadertoy Utility #413

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

Vipitis
Copy link
Contributor

@Vipitis Vipitis commented Nov 14, 2023

as mentioned in #405 (but perhaps not really related to that issue), this PR changes a single line to avoid vram build up and eventual crashes.

As I do have a dataset with several thousand Shadertoys, I will see about creating a small script to test this behaviour on different devices.

wgpu/utils/shadertoy.py Outdated Show resolved Hide resolved
@almarklein
Copy link
Member

@Vipitis This looks ready to me. Did you leave it draft for a reason, or can we merge from your end?

@Vipitis
Copy link
Contributor Author

Vipitis commented Nov 14, 2023

@almarklein I considered adding a test to the test_mem folder to try this with like 10k different shaders. But that might take me a few days.
This PR can be taken as is, will open proper Issue later this week once I understand it better.

@Vipitis Vipitis marked this pull request as ready for review November 14, 2023 16:05
@Korijn Korijn merged commit f701760 into pygfx:main Nov 14, 2023
18 checks passed
@Vipitis Vipitis deleted the shadertoy-memoryleak branch November 14, 2023 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants