-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test_scenes] Port longpathdash test case from Skia #370
Conversation
dc5c366
to
2af65bc
Compare
This is a single very long path that results in a large number of line segments when dashing is applied. This demonstrates rendering artifacts.
2af65bc
to
87b2703
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not had a chance to run this yet - can you include a screenshot?
examples/scenes/src/test_scenes.rs
Outdated
@@ -21,26 +21,21 @@ macro_rules! scene { | |||
function: Box::new($name), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably express this case (lines 16-22) in terms of the new addition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Added a butt cap and round cap variant of the pathological longpathdash test case. The round caps exhibit the expected increase in the number of line segments post-flattening, and hence a significant increase in required GPU memory. Also added a new `scene!` macro variant for custom test names and factory functions that return a test function.
6c8ce4e
to
99f92eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, and also for the cleanup of the scene creation macros. It will be useful to have more examples that stress the buffer sizes, as we make our way through the dynamic memory question.
This is a single very long path that results in a large number of line segments when dashing is applied. This demonstrates rendering artifacts.