"Failed to lock 255492 kB VRAM for part render data"

My game uses ROBLOX Smooth Terrain that then generates Foliage on top. This Foliage is loaded on the client. Whenever I add parts to the client, say, for the use of particles as example, there is a chance all parts begin flickering and will occasionally vanish. Each time they do, I recieve this Error: Failed to lock (x) kB VRAM for part render data

This tends to happen when parts are added to the game on top of the parts already added. The foliage I’m using uses MeshParts. Here’s a pic:

I’m not even sure if this is a bug, or just me doing something wrong. I don’t know much about this error. Roughly 3600 parts are being loaded on the Client.

1 Like

Yeah, you’re running out video memory due to inefficient handling of meshes in the 3D engine. I’m currently working on a solution that’s going to fix that once and for all, but it’s going to take a while. In the meantime, try reducing the polygon counts of all those trees.

8 Likes

Regardless of the clustering improvements though - this error suggests you have ~3.5 million vertices for parts that are in an approximately 50x50x50 stud area. This is an insanely high amount - are you possibly creating foliage instances over and over again?

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.