Long VisibleQuery tag in microprofiler building up after long gameplay time

I am wondering what the VisibleQuery microprofiler tag represents and what could cause it to take up a long amount of time. (Attached image is of the microprofile tag)

We’ve encountered a problem where the time taken by this tag will shoot up for no obvious reason and tank the client FPS (In our game when this type of event happened we saw no extra tris or instance counts showing up compared to a game instance that was running ordinarily.)

Aside from this tag, all of our other microprofile tags including our own scripts outside of the rendering group weren’t performing particularly poorly, just that this tag was using up a lot of time.

For added context, our game has a model culling solution where, when a client approaches a model, the server streams in a model templates for the model to the client that is saved in replicated storage. This template is cloned into an “active model” that is kept in the workspace until the client moves out of range, at which point the model is deparented for a few seconds, after which if no additional load request from the client has occured, the deparented model is formally deleted. If no active models exist at this point, the template model sent from the server is removed by the client as well.

We have been using this type of solution for about 6 months at this point and have not yet encountered this issue until a few days ago.

This post seems to also describe a similar issue

Any help would be greatly appreciated! We have been sent along a very meditative and introspective path of enlightenment trying to figure out this issue to no avail!

1 Like

Hi! I believe this to be a bug/memory leak with shadows in Roblox’s backend, but still not completely sure. There’s a bug report someone made which shows something very similar if you wanna check it out, hopefully Roblox can fix it somewhat soon because it just TANKS fps.

1 Like

This is very good to know, thanks! Hopefully this issue gets resolved, at least there is some solace in knowing that we are not the only ones struggling with this.