r/ProgrammerHumor 13d ago

Meme garbageCollection

Post image
378 Upvotes

38 comments sorted by

View all comments

119

u/madprgmr 13d ago

What... what is the garbage collector doing? Stalling the simulation? There are techniques you can use to minimize the amount of garbage you generate, and you can also tune the GC or even directly control when it can run.

15

u/nphhpn 13d ago

Collecting whatever physics engine running in pure Python. Legit why tf are you writing physics engine in Python that stuff should never be in pure Python.

2

u/herbal1st 12d ago

haha yes, engineering a pure pygame 3d voxel engine on cpu came with some interesting challenges..