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

Optimized final blit to the screen render target #65

Merged
merged 1 commit into from
Oct 24, 2021

Conversation

MaikelChan
Copy link
Contributor

When bumping the table, instead of offsetting the table pixels by CPU, just memcpy all the pixels to vScreenTex once, and then render two separate quads from that texture: one for the board and the other for the sidebar. Then change the coordinates of the board quad when bumping.

Maybe not that much difference on PC, but this made my Wii port from ~30fps to 60fps.

When bumping the table, instead of offseting the table pixels by CPU, just memcpy all the pixels to vScreenTex once, and then render two separate quads from that texture: one for the board and the other for the sidebar. Then change the coordinates of the board quad when bumping.
@k4zmu2a k4zmu2a merged commit 38cf08e into k4zmu2a:master Oct 24, 2021
@k4zmu2a
Copy link
Owner

k4zmu2a commented Oct 24, 2021

A great idea, merged.

@MaikelChan MaikelChan deleted the blit_optimization branch October 24, 2021 15:46
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.

2 participants