I started a question previously, about help extruding on a sphere. Prev question
Now that I have it working, I have been trying to optimize the performance. I am on the road atm, so I don’t have a PG yet, but will try to update tonight
On my machine in chrome, I get 50 fps, which is good. I just need smooth, so higher isn’t really needed.
However, on ie 11, fps was in high teens. I fixed this by using the scene optimizer, aND that was good.
Last night I tried it in my Chromebook, and it was 12 fps max, with optimize on. I thought maybe my Chromebook doesn’t have a GPU or maybe it’s just bad, but the Kaspersky map works great.
How can I find the performance culprit? I noticed my cpu went to 100% utilization. At first I thought my maths for calculation of vertices could be at issue, but that’s a one time thing, and my fps never improves after it finishes.
This leads to how can I optimize in specific ways. I have a globe, and the camera target is always the center of it. I have set the lower radius to 3.1, to keep the camera from hitting the mesh. Is there something I can do to tell the engine the following:
1: don’t bother drawing anything inside sphere. I think I have backface culling false on my meshes.
2: would turning off checkCollisions help the cpu?
3: I am drawing extrusion and such, which generates many vertices. Would it be better to make the countries in something like blender and export it to Babylon? Then maybe I just need to center it by position and smile? I am also projectng the country to a 2d ish look. But my fps issue is just sitting at globe looking at it.
4:. Given its a sphere, at most 50% of meshes are visible. When you zoom in to 3.1 radius, that drops to like 15% visible. Does babylon automatically handle this for optimize? I am using Arc rotate camera.
I have seen some articles, and I am working through em, but really just hoping to find a way to identify where the cpu is being murdered.