Add typography to model performance tests #8993
Open
michtesar wants to merge 7 commits into
Open
Conversation
Author
|
Hi @shakeelmohamed @ksen0 here is a PR for the #8970. I branch off the #8918 and once you are fine with this PR, I will leave a comment about one too there. Few notes about the changes:
|
17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #8970
Changes:
This PR continues the typography benchmark work from #8918 (branched from #8918).
It adds
TO_MODEL_CASESusing the same strings, text sizes, sample factors, and rendering configurations as the existingtextToPoints()benchmarks. The new cases run with both WebGL and WebGPU.The WebGPU renderer addon is registered explicitly because
src/appdoes not include it. Without registration, the benchmark emits renderer errors and produces no validtextToModel()results.Benchmarks also verifies that the generated model contains vertices with asserts. This helps detect cases where the benchmark appears to run successfully without producing usable geometry (which it happened before I registered the WebGPU renderer).
Screenshots of the change:
New tests are running ok
PR Checklist
npm run lintpasses