Live data from Hacker News

WebGPU-Based WiFi Simulator

wifi-solver.com

31–40 of 95 posts

Re: WebGPU-Based WiFi Simulator

#31

When I run the Waveguide Simulator demo on my Alienware M15 Ryzen Ed. R5 (has a RTX 3070; Windows 11 Pro, Chrome v129), I hear a distinct high pitched flutter noise emanating from my laptop. I thought it was from the speakers, but no, with my volume down it was still present as long as the simulator was playing. Weird, but very cool demo (probably my hardware, never hear this during games or other WebGPU demos). The…

That sounds like coil whine, it's a common thing to hear when GPU is working at full capacity.

https://en.wikipedia.org/wiki/Electromagnetically_induced_ac...

Re: WebGPU-Based WiFi Simulator

#32

When I run the Waveguide Simulator demo on my Alienware M15 Ryzen Ed. R5 (has a RTX 3070; Windows 11 Pro, Chrome v129), I hear a distinct high pitched flutter noise emanating from my laptop. I thought it was from the speakers, but no, with my volume down it was still present as long as the simulator was playing. Weird, but very cool demo (probably my hardware, never hear this during games or other WebGPU demos). The…

Interesting! I have a desktop 3070 and hear the same. I don't hear anything on a Mac M1 though.

Re: WebGPU-Based WiFi Simulator

#33
post #26

Earlier quoted context omitted.

Good question! This is actually a numerical solver for a few coupled partial differential equations - the method in this context (electromagnetism) is called FDTD. It's implemented as a WebGPU compute shader. You absolutely could do this using WebGL2 compute shaders too, but I thought it would be fun to try this newer API.

I don't understand what other type of solution is there to render on a gpu other than a numeric one? Here is a very basic shader for what you want: float freq1 = 2.0; float freq2 = 3.0; float amp = 0.5; pos.z += sin(pos.x * freq1 + uTime) * amp; pos.z += cos(pos.y * freq2 + uTime) * amp; gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);

That's no solver, it just displays a sine wave pattern.

Re: WebGPU-Based WiFi Simulator

#34

When I run the Waveguide Simulator demo on my Alienware M15 Ryzen Ed. R5 (has a RTX 3070; Windows 11 Pro, Chrome v129), I hear a distinct high pitched flutter noise emanating from my laptop. I thought it was from the speakers, but no, with my volume down it was still present as long as the simulator was playing. Weird, but very cool demo (probably my hardware, never hear this during games or other WebGPU demos). The…

Coil whine (or capacitor whine) from the gpu running at too high a refresh rate. Easiest thing would be to use nvidia control panel to add an fps cap to something like 2x your monitors max rate for the browser (or globally). It's pretty common with any workload after like 600 fps.

Re: WebGPU-Based WiFi Simulator

#35
post #34

When I run the Waveguide Simulator demo on my Alienware M15 Ryzen Ed. R5 (has a RTX 3070; Windows 11 Pro, Chrome v129), I hear a distinct high pitched flutter noise emanating from my laptop. I thought it was from the speakers, but no, with my volume down it was still present as long as the simulator was playing. Weird, but very cool demo (probably my hardware, never hear this during games or other WebGPU demos). The…

Coil whine (or capacitor whine) from the gpu running at too high a refresh rate. Easiest thing would be to use nvidia control panel to add an fps cap to something like 2x your monitors max rate for the browser (or globally). It's pretty common with any workload after like 600 fps.

[deleted]

Re: WebGPU-Based WiFi Simulator

#37
post #17

Earlier quoted context omitted.

ChromeOS is not a Linux distribution, change my mind.

ChromeOS is a Linux kernel with some software bundled on top to make a usable system; it is by definition a Linux distro. Curiously, it's even a GNU/Linux distro, as it uses glibc and GNU coreutils, unlike ex Android which is a non-GNU distro. I will grant that it's a slightly odd distro, but is it any weirder than NixOS or Fedora Silverblue?

Only runs browser instances. Even Crostini is sandoxed in a way similar to WSL2.

Re: WebGPU-Based WiFi Simulator

#38

Earlier quoted context omitted.

Good question! This is actually a numerical solver for a few coupled partial differential equations - the method in this context (electromagnetism) is called FDTD. It's implemented as a WebGPU compute shader. You absolutely could do this using WebGL2 compute shaders too, but I thought it would be fun to try this newer API.

Annoyingly WebGL2 doesn't have compute shaders even though GLES3.x that it is based on does.

Thank Google for that, as they dropped Intel contribution to WebGL Compute, with the reasoning WebGPU would be good enough.

Re: WebGPU-Based WiFi Simulator

#39
post #37

Earlier quoted context omitted.

ChromeOS is a Linux kernel with some software bundled on top to make a usable system; it is by definition a Linux distro. Curiously, it's even a GNU/Linux distro, as it uses glibc and GNU coreutils, unlike ex Android which is a non-GNU distro. I will grant that it's a slightly odd distro, but is it any weirder than NixOS or Fedora Silverblue?

Only runs browser instances. Even Crostini is sandoxed in a way similar to WSL2.

User-facing apps are browser instances and VMs, and under that is a pretty normal userland. It's still a distribution of software on a Linux kernel. And for that matter, is Silverblue any less a Linux distro with its read-only root and apps in flatpak/distrobox? Are Qubes OS or Proxmox with everything in VMs?

Re: WebGPU-Based WiFi Simulator

#40

When I run the Waveguide Simulator demo on my Alienware M15 Ryzen Ed. R5 (has a RTX 3070; Windows 11 Pro, Chrome v129), I hear a distinct high pitched flutter noise emanating from my laptop. I thought it was from the speakers, but no, with my volume down it was still present as long as the simulator was playing. Weird, but very cool demo (probably my hardware, never hear this during games or other WebGPU demos). The…

As others have said, it's probably the GPU power supply circuits making the sound; if the pattern of power consumption has frequencies in the audible range, it can cause components like inductors and capacitors to mechanically vibrate at those frequencies and emit sound. The reason you don't hear it in games is either due to the game audio being much louder or the power pattern not having those audible frequencies.

CPU power circuitry can do the same, but given this is using the GPU, it's a safe assumption that it's the latter.

Post reply on HN