Closed kunkun0w0 closed 2 months ago
Yes, I am aware of this unfortunate issue. We think it's due to a memory leak in moderngl-window. The related issue is here, and although it is closed, the problem does not appear to be fixed according to the latest comments.
Two things help:
pyglet
(see #12 ), but that is less performant.subprocess.run
.
Hi~ I encountered a memory problem when using headless rendering multiple times. The memory occupancy will accumulate till the system shuts down. I tried to reset the viewer and release the renderable nodes after saving the video. However, it does not work.
I checked line by line and found that the memory usage suddenly increased after the
self.viewer.save_video
.Would you like to give me some suggestions to solve this?