Sure I will try that.
Do you know where can I upload the model?
(Most sites here are blocked, googledrive and onedrive did not work, but I see that you’ve downloaded the model now)
About what you said in the second post:
Are you sure? When I’m outside the building the clicks do not drop the FPS, but when I’m with the camera inside the building the FPS drops…
Anyway, the number of triangles does compromise performance, you are absolutely right, but splitting the mesh into other meshes does impact in general performance, like navigation with the camera.
I can give you the same model, unoptimized, with many meshes and no instances, that would do a worse impact on performance, not only on the click cenario, but the overall rendering performance would be afected, the average FPS would drop significantly.
Unfurtunatelly I still need to use the unoptimized version, because one of my requirements is to select the meshes individually (if everthing is one mesh, I cant select individually).
I still think that the mesh.intersects method is being called for nothing…
Perhaps it’s supposed to check the intersect object, if it exists, and call a onclick event or something like that. Being that or the need of a cache/preprocessing there is room for improvement.
I’m really new in the 3D world and I don’t understand the innerworking maths and shit behind the renderization of a frame, I will keep researching…