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

Metal Performance #1657

Closed
stefankarschti opened this issue Sep 19, 2023 · 2 comments
Closed

Metal Performance #1657

stefankarschti opened this issue Sep 19, 2023 · 2 comments
Assignees
Labels

Comments

@stefankarschti
Copy link
Collaborator

stefankarschti commented Sep 19, 2023

Measure and improve metal render performance.
Initial performance is about 3.5 fps on iPad 5th gen.

@stefankarschti
Copy link
Collaborator Author

Initial instrumentation shows significant time being spent in mtl::ShaderProgram::getRenderPipelineState

Image

@stefankarschti
Copy link
Collaborator Author

After caching the pipeline state:

Benchmark completed.
Result:
| boston     | 46.0 ms | 21.7 fps |
| paris      | 69.8 ms | 14.3 fps |
| paris2     | 52.0 ms | 19.2 fps |
| alps       | 39.0 ms | 25.7 fps |
| us east    | 37.9 ms | 26.4 fps |
| greater la | 49.2 ms | 20.3 fps |
| sf         | 83.8 ms | 11.9 fps |
| oakland    | 59.0 ms | 16.9 fps |
| germany    | 53.9 ms | 18.5 fps |
Average frame time: 54.5 ms
Average FPS: 18.3

@alexcristici alexcristici linked a pull request Oct 2, 2023 that will close this issue
@alexcristici alexcristici moved this from In Progress to Up Next in MapLibre Native Project Nov 6, 2023
@alexcristici alexcristici moved this from Up Next to In Progress in MapLibre Native Project Nov 16, 2023
@alexcristici alexcristici linked a pull request Nov 16, 2023 that will close this issue
@alexcristici alexcristici moved this from In Progress to Done in MapLibre Native Project Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
2 participants