As some might have heard, I'm currently working on a groundbreaking new 3D engine, based not off of triangles... but off of the p5js line() function. In case that sounds stupid, let me explain: there's this buff project on Scratch called Vectoid TD3D, which basically uses the same system of drawing.
Anyways, I am going well on with my project (I have some really cool models right now that I am using to test), and while my 3D models render perfectly, are very easy to manipulate, and all and all and all...
IT'S DAMNED SLOW.
I have experimented with removing the Z-sorting of vertices entirely, and that seems to be the biggest source of FPS drop in my project. Without sorting, I can get consistent 30 FPS. However, without Z-sorting, my stuff looks like it was made by someone half my age. Thus, I will ask all of you: do you know any sorting method for vertices? The vertices are stored in the following format:
[[x,y,z],[x1,y1,z1],[x2,y2,z2]]
Please only respond to this post if you have a decent understanding of 3D and sorting.
Thank y'all!