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

Very high CPU usage compared to Shadertoy #66

Open
ghost opened this issue Jul 21, 2019 · 2 comments
Open

Very high CPU usage compared to Shadertoy #66

ghost opened this issue Jul 21, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2019

On my desktop this is not really a problem but on my laptop with an integrated GPU, the CPU usage goes up to 50%+ on all threads compared to ~15% on the regular Shadertoy website using the same very basic shader code.

I don't know if this is because of a limitation by VSCode or something?

@Malacath-92
Copy link
Collaborator

I don't know much about how integrated GPUs work, but I would assume that in this context GPU usage equates CPU usage. Correct me if I'm wrong.

I know the extension uses quite a lot of GPU time, depending on the shaders that are used. From my superficial investigation that might be related to THREE.js. The online version of shadertoy does not use the THREE.js framework, but afaik does all the webgl code themselves. But I can't say for sure if it is an issue with how we're using the library or if it is actually doing too much work. It is certainly something work investigating, but probably requires a more involved solution.

Do you have an example of which shaders cause the high usage or does it happen really on any shader?

@Malacath-92
Copy link
Collaborator

Is this better in the latest version that uses async I/O?

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

No branches or pull requests

1 participant