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 polygon rendering #17

Open
coolbutuseless opened this issue Jun 26, 2024 · 0 comments
Open

Optimized polygon rendering #17

coolbutuseless opened this issue Jun 26, 2024 · 0 comments

Comments

@coolbutuseless
Copy link
Owner

coolbutuseless commented Jun 26, 2024

A better optimized polygon rendering algorithm would be nice to have, but is not a priority for the initial release.

Optimizations:

  • Use an active edges list
  • Use Bresenham-style position updating to efficiently update the polygon edges at every new scanline.
  • polygon clipping? Not sure if "juice is worth the squeeze". Does the time spent clipping save enough compared to when it comes time to actually render?

Probably best to start this as a new function in C, and just leave the old one for reference.

References:

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

No branches or pull requests

1 participant