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

Remove unused mask code from rotozoom #4

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Conversation

Daft-Freak
Copy link
Collaborator

As the line that sets the mask has been commented out forever, this is just a waste of CPU cycles. (~7% on an RP2350)

@Daft-Freak
Copy link
Collaborator Author

Mmmm, that mode switching code seems broken...

@Daft-Freak
Copy link
Collaborator Author

For reference, the mask code (and the wonky mode switch) was added in 32blit/32blit-sdk@3b48d88 and disabled in 32blit/32blit-sdk@9306146, which I think were both the same PR, so this has basically never done anything useful.

I'm not sure what was intended here, but "switch to `lores` when `DPAD_UP` is pressed, switch back on any other button change including `DPAD_UP` being released" probably isn't it.
@Daft-Freak Daft-Freak force-pushed the patch-rotozoom-mask branch from a7797d3 to fd5539e Compare August 27, 2024 15:41
@Daft-Freak
Copy link
Collaborator Author

Emscripten action: "Cache already exists"
GitHub CLI: "No caches found in 32blit/32blit-examples"
GitHub UI: "Uh, both?"
image

I'm just going to wait and hope GitHub fixes itself...

@Daft-Freak Daft-Freak merged commit fe3e0d4 into main Sep 26, 2024
12 checks passed
@Daft-Freak Daft-Freak deleted the patch-rotozoom-mask branch September 26, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant