Small triangle optimization ( + tigr.h backend for vc.c )#40
Open
jukeliv wants to merge 4 commits intotsoding:masterfrom
Open
Small triangle optimization ( + tigr.h backend for vc.c )#40jukeliv wants to merge 4 commits intotsoding:masterfrom
jukeliv wants to merge 4 commits intotsoding:masterfrom
Conversation
Author
|
also, all changes in nob.c file where done just to test the library on my windows machine, they can be deleted if wanted, I just did the pr for the optimization of the triangle drawing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I optimized a bit the triangle drawing, for when they draw with textures :p
all the optimization "tricks" I did are explained in the comments in a more or less detailed manner. I also added a tigr.h backend, but this was just done for testing purposes ( because I work on a windows machine, and I didn't had SDL2 installed rn, and tigr.h is really simple to just plug-and-play ), it can be removed, but the optimization for the uv triangles part is really neat and would be nice if you merged those changes!
Cheers.