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

Improve Sphere gizmo performance #103910

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

kiroxas
Copy link
Contributor

@kiroxas kiroxas commented Mar 10, 2025

Same as cylinders and capsule but for sphere shape.

Gains roughly between the two previous one (so around 30x).

Reduced segments from 360 to 64.

With 64 segments
Sphere_64

With 360 segments
sphere_360

Like cylinder, if some people do see a difference that bothers them, we can slightly increase it.

@kiroxas kiroxas requested a review from a team as a code owner March 10, 2025 15:07
@clayjohn clayjohn added this to the 4.5 milestone Mar 10, 2025
@kiroxas kiroxas force-pushed the ImproveSphereGizmoPerformance branch from 1a6d6d0 to f9bb2a2 Compare March 10, 2025 17:56
@kiroxas
Copy link
Contributor Author

kiroxas commented Mar 10, 2025

Bumped it to 128 segments, to be like the cylinder one.

@kiroxas kiroxas force-pushed the ImproveSphereGizmoPerformance branch from f9bb2a2 to 4915f91 Compare March 10, 2025 19:12
@Repiteo Repiteo merged commit 13907ec into godotengine:master Mar 11, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Mar 11, 2025

Thanks!

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