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

[ios] Using SIMD to replace vector_float types can boost CPU performance on mid-range models. #2720

Closed
wants to merge 1 commit into from

Conversation

kikiloveswift
Copy link
Contributor

@kikiloveswift kikiloveswift commented Dec 27, 2024

I've been working on further optimizing Spine performance lately. For Spine files with a lot of vertices on mid-range devices with moderate performance, using SIMD significantly optimizes CPU usage, reducing it by about 10 to 20%. However, for files with a typical vertex count on high-end flagship devices, the optimization gains from SIMD aren't as pronounced, only reducing CPU usage by about 4%.

@kikiloveswift kikiloveswift marked this pull request as ready for review January 2, 2025 11:24
@badlogic
Copy link
Collaborator

This is excellent, thank you!

I'm actually surprised, that the compiler doesn't auto-vectorize most of this, and that changes to the shader have an impact on CPU usage.

@badlogic badlogic closed this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants