Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Bituvo
Copy link
Contributor

@Bituvo Bituvo commented Apr 27, 2025

I rewrote the GPU line rendering code to use Bresenham's algorithm, and a modified version of that to draw higher quality antialiased lines. The command syntax is no different.

@Bituvo
Copy link
Contributor Author

Bituvo commented Apr 27, 2025

Here is a demonstration of the new line-rendering algorithm:
https://github.com/user-attachments/assets/35789dfa-1b44-4db3-a4c5-361c18643ef9

@BuckarooBanzay BuckarooBanzay added the enhancement New feature or request label May 7, 2025
@BuckarooBanzay
Copy link
Member

looks good so far, but i'm not familiar with the gpu stuff, maybe @SwissalpS could take a look?

@SwissalpS
Copy link
Contributor

SwissalpS commented Jun 28, 2025

Thanks for bringing better algo to this mod :D

This PR seems fine except lines 423 to 434 which don't seem to add anything.

@SwissalpS
Copy link
Contributor

Works for me now.
1 approval

@SwissalpS SwissalpS merged commit 9c64329 into mt-mods:master Jul 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants