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

refactor: ♻️ Move client graphics code to separate crate #2639

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

zmerp
Copy link
Member

@zmerp zmerp commented Jan 17, 2025

No description provided.

Copy link
Collaborator

@The-personified-devil The-personified-devil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes themselves LGTM, I just don't really understand moving stuff to a separate crate because client and server graphics code will always be pretty different (because they need to do fundamentally different things) and especially with wgpu there's very little boilerplate to save by having shared helpers.

@zmerp
Copy link
Member Author

zmerp commented Jan 18, 2025

The idea was in the future to move server code to wgpu. Things like Foveated encoding need to share how the parameters are calculated (at the moment we straight up duplicate the code), and other things like wgpu initialization could be partially shared

@The-personified-devil
Copy link
Collaborator

Yea I just realized a certain amount of stuff can be shared for FFE, but apart from that idk.

@zmerp zmerp merged commit 393f894 into master Jan 18, 2025
8 checks passed
@zmerp zmerp deleted the graphics-refactoring branch January 18, 2025 01:16
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