168622
Level 23 Mixist
Minerscale
post #168622 ::
2023.03.11 11:59pm :: edit 2023.03.12 12:06am
Svipal, Luigi64, raphaelgoulart, puke7, Quirby64, Xaser, roz, kilowatt64, Lasertooth, algoziptunes, argarak, kleeder, sean, cudsys, now_its_dark and cabbage drop liēkd this
Svipal, Luigi64, raphaelgoulart, puke7, Quirby64, Xaser, roz, kilowatt64, Lasertooth, algoziptunes, argarak, kleeder, sean, cudsys, now_its_dark and cabbage drop liēkd this
Hi everybody! I've gone and spent way too many hours creating the world's most stupidly fast bytebeat renderer which does the actual computation using Vulkan GPU compute.
Why the heck have you done this?
No idea, honestly. I thought it would be dope to be able to generate hundreds of megabytes of bytebeat per second. This program can do it.
How does it work?
GPU's are uniquely suited to doing one thing over and over and over again on the same data. Bytebeat is effectively just running a function on a variable t over and and over and over. Match made in heaven! This thing will spit out bytebeat blasingly fast (or, on the other hand, blazingly efficient!) On my laptop I'm getting something like 0.2% CPU usage while the CPU isn't boosting at all. It sips power hehe.
300 lines of rust just to output a sine wave?
Yes. Vulkan is just about the most horribly verbose thing I have ever seen.
Wow! I'm never going to use this, this is pointlessly difficult to use and it fixes a problem I never had in the first place. Where's the link?
Glad you asked. Here it is: https://github.com/minerscale/gpu-audio
In all seriousness I put way too much work into this and I'm weirdly proud of it. I have no idea if it will work well on other operating systems due to the way it plays audio to the speaker but we'll see. The actual bytebeat formula is in the shader.glsl file. If anyone can be bothered to actually get it working :p
Why the heck have you done this?
No idea, honestly. I thought it would be dope to be able to generate hundreds of megabytes of bytebeat per second. This program can do it.
How does it work?
GPU's are uniquely suited to doing one thing over and over and over again on the same data. Bytebeat is effectively just running a function on a variable t over and and over and over. Match made in heaven! This thing will spit out bytebeat blasingly fast (or, on the other hand, blazingly efficient!) On my laptop I'm getting something like 0.2% CPU usage while the CPU isn't boosting at all. It sips power hehe.
300 lines of rust just to output a sine wave?
Yes. Vulkan is just about the most horribly verbose thing I have ever seen.
Wow! I'm never going to use this, this is pointlessly difficult to use and it fixes a problem I never had in the first place. Where's the link?
Glad you asked. Here it is: https://github.com/minerscale/gpu-audio
In all seriousness I put way too much work into this and I'm weirdly proud of it. I have no idea if it will work well on other operating systems due to the way it plays audio to the speaker but we'll see. The actual bytebeat formula is in the shader.glsl file. If anyone can be bothered to actually get it working :p