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

Use a power-of-two value for Primary Grid Steps in the 3D editor #43754

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Nov 21, 2020

This matches the 2D editor default behavior.

Powers of two are usually better for grid divisions as they are often used in level design.

This matches the 2D editor default behavior.

Powers of two are usually better for grid divisions as they are often
used in level design.
@Calinou Calinou added cherrypick:3.x Considered for cherry-picking into a future 3.x release enhancement topic:editor usability labels Nov 21, 2020
@Calinou Calinou added this to the 4.0 milestone Nov 21, 2020
Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

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

Makes sense, I support this change. The only reason it was set to 10 before is because that was the existing behavior.

As a coincidental benefit, since 8*8*8*8 is 4096, the practical limit for FPS games (4096m) falls on a primary grid line. Here's what that looks like (and if it was allowed to change size once more, it would fall on another primary line):

Screenshot from 2020-11-21 17-38-24

@akien-mga akien-mga merged commit 663d0d7 into godotengine:master Nov 23, 2020
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.2.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Nov 24, 2020
@Calinou Calinou deleted the primary-grid-steps-default-pot branch March 31, 2021 09:44
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.

3 participants