FIRST MODEL IS MUCH FASTER WITH Z-SORTING THAN SECOND Z SORTING ON SECOND MODEL IS LAGGY somewhat working z sorting and backface culling included backface culling is just hiding non-seeable triangles z-order is just to render the first triangles first and the last ones last so no texture overlap happens
all code by me