Commit bbb1314
committed
meshletcodec: Simplify triangle decoding tail
When decoding triangles into 24-bit representation, the tail needs to
write 4 or 8 bytes. We were processing this as either a 8 or 4 byte
write; however, that results in a more complex branching structure than
writing 4 or 4+4 bytes does; and in practice, doing two writes (second -
conditionally) seems to be a little bit faster.1 parent 4121a65 commit bbb1314
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
738 | 737 | | |
739 | 738 | | |
740 | 739 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
745 | 743 | | |
746 | 744 | | |
747 | 745 | | |
| |||
0 commit comments