r/Python • • Jan 14 '20

I made a gravity simulation https://github.com/phgilde/gravity_simulation

1.8k Upvotes

82 comments sorted by

View all comments

10

u/quantumwoooo Jan 14 '20

That's so amazing

It looks SO COOOOOLLLL

Imagine this as a screensaver, or, wallpaper

6

u/[deleted] Jan 15 '20

Well this took 3h to simulate so you would need a really beefy computer

1

u/o11c Jan 15 '20

You could trim that a little by passing output arguments and finding a ufunc version of fused-multiply-add.

But really you want to do this on the GPU.

1

u/[deleted] Jan 15 '20

Ik but I have a Radeon gpu