ps2dev / gsKit

gsKit is a C interface to the PS2 Graphics Synthesizer
Other
103 stars 27 forks source link

Allow sending list of vertices to primitives #56

Closed fjtrujy closed 1 year ago

fjtrujy commented 1 year ago

This PR just creates new functionality in gsKit allowing now just to print a list of vertices given a specific primitive.

Doing that, first of all, we work similarly to other platforms, and secondly, it improves performance.

Speaking about numbers: In SDL I have an example that is drawing in random positions 100 points, 100 lines, and 100 sprites (without texture) and the performance has improved from 38 FPS to 51 FPS.

Additionally, a new cube example has been added.

Special thanks to @DanielSant0s for doing this feature together!

Cheers

fjtrujy commented 1 year ago

@F0bes I know that you're an expert in this area, could you also take a look?

Cheers

F0bes commented 1 year ago

That looks good