Planning changes for the Next Blender exporter release

For the indexed vs un-indexed part, it is not so much making the switch, but knowing if it is actually going to help or not.

Was thinking about a scene tool, which would compare the vertex shader times each way, by loading a .babylon and capturing the GPU time for a number of frames each way. Here is a mock up so far.


The context is actually that black square. The reason it is so small is that way the fragment shader part of the time will be as small as possible. This test is really trying to get at the vertex shader time. Also, not going to draw right for meshes with textures anyway, unless they are embedded into .babylon.

To get that GPU time, I wanted to get the render time for each mesh. My thought was to force each mesh to be the only one drawn, and take the time from the same place the inspector gets is. Where is that?

Other precautions:

  • Add / Remove cameras. so there is only one.
  • All meshes need to have no children. Child meshes cannot be drawn alone.
  • Delete all instances

Any thoughts, and again where does inspector gets its GPU time data?