LOD script revisions needed.

I finally got some time to test this LOD script on my forest. Before I had only tested it on individual objects and that worked perfectly. There are a few problems with many objects though.

The first problem is that the logic process is extremely slow. I assume this is because the distance to each mesh has to be calculated. I already attempt to make many objects with the same mesh just for the heck of it, but of course that didn’t work. I suppose what we really need is a group of objects or a general area which is calculated instead. I’m going to try to do this myself, but I am very bad with coding right now, so any help would be appreciated.

The other problem is bounding box must be the size of the empty mesh because I can walkthrough the objects and they are clipped out prematurely. I haven’t attempted to fix this yet, but I think it will be easy to fix once I try.

If anyone has some ideas, I will be grateful. The script at the moment along with the blend file, both provided by andrew-101, can be found in this thread.