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

Store Margin using i8 to reduce its size #5567

Merged
merged 1 commit into from
Jan 2, 2025
Merged

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jan 2, 2025

Adds Marginf to fill the previous niche.

This is all in a pursuit to shrink the sizes of often-used structs, to improve performance (less cache misses, less memcpy:s, etc).

@emilk emilk added performance Lower CPU/GPU usage (optimize) egui epaint labels Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

Preview available at https://egui-pr-preview.github.io/pr/5567-emilkshrink-margin
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@emilk emilk merged commit d58d137 into master Jan 2, 2025
49 checks passed
@emilk emilk deleted the emilk/shrink-margin branch January 2, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui epaint performance Lower CPU/GPU usage (optimize)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant