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

Optimise stretch_blit_vspan #830

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Optimise stretch_blit_vspan #830

merged 1 commit into from
Aug 16, 2023

Conversation

Daft-Freak
Copy link
Collaborator

Copy the code for stretch_blit and remove the x logic.

For raycaster (one of the two users):

  • -2 ms on 32blit
  • -6 ms on PicoSystem
  • -27 ms (ish) on PicoVision (drawing vertically is still bad for perf)

A lot of the improvements can also be gained by replacing the contents of stretch_blit_vspan with stretch_blit(src, {uv, Size{1, sc}}, {p, Size{1, dc}});. Probably because I already optimised that a lot.

Copy the code for stretch_blit and remove the x logic
@Daft-Freak
Copy link
Collaborator Author

Oh, PicoSystem number may be slightly off as I'm running from the PicoVision branch with it's hacked down clock. It's definitely still an improvement though.

@Gadgetoid Gadgetoid merged commit 2273520 into master Aug 16, 2023
16 checks passed
@Gadgetoid
Copy link
Contributor

Nice, thank you!

@Daft-Freak Daft-Freak deleted the patch-stretch_blit_vspan branch August 16, 2023 14:29
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