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

Update egui to 0.26.2 and sdl2 to 0.36 #36

Merged
merged 7 commits into from
Mar 14, 2024
Merged

Conversation

osimarr
Copy link
Contributor

@osimarr osimarr commented Mar 13, 2024

This pull request updates egui dependency to 0.26.2 and sdl2 dependency to 0.36 and optimize misc parts of the code

Closes #37

Copy link
Owner

@ArjunNair ArjunNair left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! You've done a bang up job of it and as a result I've just a minor comment for review.

src/painter.rs Outdated
@@ -234,6 +47,30 @@ pub struct Painter {
pub screen_rect: Rect,
}

macro_rules! get_error {
Copy link
Owner

Choose a reason for hiding this comment

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

Might be better to name this macro as get_gl_error as that makes the intent even more clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing. That makes sense. I've pushed a new commit renaming the macro

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to rebase my pull request as I found an issue on how the shader sources were being propagated to outside the crate. The rebasing also addresses your previous comment.

osimarr added 5 commits March 13, 2024 20:46
egui sends vertices and indices ready to be sent to the shader.
Reworking them is unnecessary and wastes CPU cycles each frame.

Signed-off-by: David Cohen <[email protected]>
Signed-off-by: David Cohen <[email protected]>
@ArjunNair ArjunNair merged commit c2ac222 into ArjunNair:main Mar 14, 2024
4 checks passed
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.

Outdated egui version
2 participants