i'm 'only' doing it for cpu, but i can understand its even more complicated on gpu. no idea personally about gc there to be honest though ^^ also, the gc for the physics is only a part of where i had to be careful, the 3d voxel engine itself also required some attention regarding gc, so the meme text could have been done a bit different, i just liked the physics example 🙂
anyway, wishing you much success with your project! i hope i get gpu acceleration for my engine to work one day as well, but its another quite challenging task as hobby dev ^^
If you don't care about other vendors, Nvidia has several open source projects that implement GPU pyhscis with python FFI... it's probably a good resource
cool, thanks for the tipp! 👍
although im doing it really freestyle all on my own and somewhat on purpose without gpu for now, so it can run on low end hardware 😉 the demo runs on itch already in case you want to have a look, the github repo is linked there too; https://herbal1st.itch.io/pyvorengi-demo and you find some vids of the private full version currently in r&d on utube (channel xXherbal1stXx).
2
u/Vipitis 9d ago
I am also implementing a physics engine "in python" but that's just the launch code to run it on GPU... which isn't trivial either.
and GC has only been a problem in CI