Schwungus-Software / PNEngine

Fully external 3D engine for GameMaker
MIT License
1 stars 1 forks source link

Memory leak due to interpolated structs not getting garbage collected #4

Closed LocalInsomniac closed 4 months ago

LocalInsomniac commented 9 months ago

Structs that have interpolated variables through the use of interp() aren't getting garbage collected and will slow the game down once there are too many things to interpolate. The only workaround for this is to call gc_collect() manually after detecting any dead interpolated instances.

Still not sure if this is related to Catspeak: https://github.com/katsaii/catspeak-lang/issues/91

2024/01/22: Catspeak functions no longer use self which may mitigate this issue, needs testing.