When im creating the faces, i know their exact number, but to speedup the 
rendering, I want to merge them by their common texture. I dont know the number 
of the merged faces, so I have to make one [loop trough all the 
faces](https://github.com/JDragan/CoreQ3BSP/blob/a9242fed0e603628b8c1e901a258a34edb899ad7/src/coreBSP.nim#L93)
 and find the number of unique texture/lightmap combinations.

Then from this number i have the size of the render data (number of merged 
faces) Then I do another loop to fill the data.

With tables I dont have to do that, I can do that in the first loop

Reply via email to