Skip to content

Implications on slowness ? -> JSON embed buffers are slow! consider using glTF binary #383

Answered by atteneder
ThanosRestas asked this question in Q&A
Discussion options

You must be logged in to vote

No exact metrics, but here's the additional load from the top of my head:

  1. 33% larger buffers (from base64 overhead)
  2. The JSON parser will make a copy when creating a managed string from the JSON field
  3. Another copy of the managed string is made when separating the actual data from the meta prefix (string.SubString)
  4. For the final buffer, additional memory is allocated.
  5. Conversion is done on main thread.

Some of this could be optimized, but I heavily focused on optimizing for regular/binary files so far.

I don't have exact metrics at hand, though it would be interesting! The larger the meshes/vertices-/triangle counts (and thus glTF's buffers) the larger difference. For smallish objects the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ThanosRestas
Comment options

Answer selected by ThanosRestas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants