Skip to content
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

Fix build failure on visionOS #213

Merged
merged 4 commits into from
Aug 3, 2023
Merged

Conversation

chrisvasselli
Copy link
Contributor

Fix for issue #212

I'm think this is the correct change, but I'm not totally sure, since I'm not totally sure how visionOS handles rendering vector graphics, and I don't see any way to get access to a recommended rasterization scale. But I tried this version (no rasterization), and rasterization with the scale hardcoded to 1x, 2x, and 3x, and you can see the results below. This me getting right up close to the window displaying the "simple - lines" demo. To my eyes, 2x, 3x, and no rasterization all look the same.

Interestingly, I see sharp lines on the no-rastering version while moving in closer to the window, but as soon as I settle it seems to render it at a 2x scale. So I think disabling rasterization may make things look better while a user is moving around?

No rastering
no-rastering

1x scaling
1x scale
2x scaling
2x scale
3x scaling
3x scale

@arielelkin
Copy link
Collaborator

Thanks for sending this through. Could you please take a look at this PR for your PR: chrisvasselli#1 for the sake of passing CI

@arielelkin arielelkin merged commit 5872ce8 into pocketsvg:master Aug 3, 2023
3 of 4 checks passed
@arielelkin
Copy link
Collaborator

thanks @chrisvasselli !

@arielelkin
Copy link
Collaborator

Actually I spoke too quickly, I had to undo this as it fails on Xcode 15.0 and macOS 13. Seems like TARGET_OS_VISION isn't defined. I'll revisit when Xcode 15 comes out of beta, but feel free to push changes if you think they can pass CI.

@chrisvasselli
Copy link
Contributor Author

@arielelkin Are you running the latest beta (beta 5)? They changed it from TARGET_OS_XR to TARGET_OS_VISION in the latest beta. No worries though, makes sense to wait till Xcode 15 comes out of beta.

@arielelkin
Copy link
Collaborator

arielelkin commented Aug 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants