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

Detect constant shapes (slope = 0) to optimize scanline processing & tile generation #46

Open
bourgesl opened this issue Jul 13, 2022 · 2 comments

Comments

@bourgesl
Copy link
Owner

Detect that edges are all hz or vertical :

  • v lines or rectangles are "constant"
  • Use 1px row and repeat it directly until new edges to compute tiles.
  • If the line or height is high, it will compute only 1px row mask instead of (y2 - y1) pix * 8 (subpixels) !

That would be a huge win.

@bourgesl
Copy link
Owner Author

See sketch showing vertical lines or rectangles: all edges have no slope...

@bourgesl
Copy link
Owner Author

Optimize addLine too to avoid computations when slope ~ 0

@bourgesl bourgesl moved this to Todo in @bourgesl FOSS TODO Aug 21, 2022
@bourgesl bourgesl moved this from Todo to In Progress in @bourgesl FOSS TODO Jul 29, 2023
@bourgesl bourgesl moved this from In Progress to Hanging in @bourgesl FOSS TODO Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Hanging
Development

No branches or pull requests

1 participant