Skip to content

FYI: Change in babylonjs 6 slows down text mesh creation significantly #9

@aboteler

Description

@aboteler

The new babylonjs 6 version introduces a addQuadraticCurveTo method which uses as default 36 segments instead of 6 in your code. In my case this slowed downed text creating by 15x. Maybe add another option to pass in the number of segments, i.e.

"numSegmentsForQuadraticCurveTo": "6"

which the library can pass into the method. In the meantime, I just nulled out the original method to force using your version.
MeshWriterMethods.Path2.prototype.addQuadraticCurveTo = null; this.meshWriter = MeshWriter(this.scene, { scale: 1.00, methods: MeshWriterMethods });

BTW, thanks for a great library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions