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

GraphEdit: Improve dotted pattern grid performance #96910

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

zaevi
Copy link
Contributor

@zaevi zaevi commented Sep 12, 2024

Separate the drawing of major and minor dots so that they can be batched on rendering.

Size = ~2560*1400, Zoom = 42%:

Before After
Pasted image 20240912200233 Pasted image 20240912195126

@zaevi zaevi requested a review from a team as a code owner September 12, 2024 13:02
@AThousandShips AThousandShips added this to the 4.x milestone Sep 12, 2024
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Fantastic work!

@clayjohn clayjohn modified the milestones: 4.x, 4.4 Sep 12, 2024
@zaevi zaevi force-pushed the improve_GraphEdit_dot_grid branch from a9aa4ce to 84102af Compare September 12, 2024 15:58
@clayjohn
Copy link
Member

Just a note for future reference, the batching implementation in #92797 is able to batch rects of differing colors (so it is able to batch the dots even before this PR). But separating the draw calls like this is good practice and may have a performance benefit in the future, so it is worth merging

@akien-mga akien-mga merged commit 84f1fe7 into godotengine:master Sep 13, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@zaevi zaevi deleted the improve_GraphEdit_dot_grid branch September 13, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants