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

Camera: optimize some loops #15491

Merged
merged 2 commits into from
Apr 27, 2024
Merged

Camera: optimize some loops #15491

merged 2 commits into from
Apr 27, 2024

Conversation

Megamouse
Copy link
Contributor

@Megamouse Megamouse commented Apr 20, 2024

  • Factor out some conditions in RAW8 loop.
  • Use floats in YUV loop.
  • Replace pixel getters with simple pointers.

Maybe this slightly decreases the CPU load when playing games that need a camera.
Let's hope this doesn't break anything :)

@Megamouse Megamouse added PSMove Camera Optimization Optimizes existing code labels Apr 20, 2024
Factor out some conditions in RAW8 loop.
Use floats YUV loop.
Replace pixel getters with simple pointers.
@Megamouse Megamouse merged commit e32c48d into RPCS3:master Apr 27, 2024
4 of 6 checks passed
@Megamouse Megamouse deleted the test branch April 27, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Camera Optimization Optimizes existing code PSMove
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant