Roblox built in Proximity Prompt system does not get picked up by the garbage collector upon rapid switches between proximity prompts.

I am building a game where there are many proximity prompts. i keep track of the lua heap using gcinfo() upon rapid switches between proximities the gc info size goes up and does not clear over time. this has been frustrating in building my game i have done a 3 hour debug session to see if i was the problem which i already did not suspect. but then i came to the conclusion that the built in proximity prompt system does not work properly

before rapid switches: ~3.3-4mb
image
after rapid switches for 20 seconds: 6.4-8.6mb
image

this keeps growing and growing. its very frustrating.

2 Likes

Might be related: Changing input types creates a new Prompt Gui - #2 by SomeFedoraGuy, specifically:

Thanks for posting @DevExply, unfortunately this is not an issue.