sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.29k stars 633 forks source link

Feature Request - Potential GPU Utilization? #733

Open flexagontnt opened 2 years ago

flexagontnt commented 2 years ago

There are some api's that run java code via the GPU (like aparapi). This can (probably) be useful for constructing large circuits with little lag.

pfalstad commented 2 years ago

For large analog circuits, the slowest part is the gaussian elimination, which (I heard) is not well suited for GPU's. For large digital circuits there's nothing that can be easily moved onto the GPU.

Also, the simulator requires double precision, which is not well supported on most GPU's. (We have enough issues with bad precision as it is.)

flexagontnt commented 2 years ago

Oh well. Maybe it can be done on multiple CPU cores?