Strange thing is that on my current PC (not laptop) i have no CPU usage on map editor, all faces are drawn.
But in my laptop which only has 16MB of video memory, it uses CPU, not alot but around 20-30 depends...
If video mem is too low for gfx app this means Windows or something makes the app to use CPU also?
And another question.
Atm, i have lots of repeated vertex coords for all the slopes (blocks). The unit file size is 322KB. I was able to reduce it to this size with help of User137. Gave me great suggestions. Before that it was something like 1.6MB or something.
I would like to make it even more smaller.
And was thinking about only use unique vertex coords. Many blocks that need same vertex, is pointed to one vertex, so one vertex is not duplicated for each block that needs it.
And also use glDrawElements, and maybe even interleaved arrays.
Drawelements is in core from v1.1, so shouldnt be a problem on old hardware.
Will this speed up my rendering also a bit?
Here is example, how some vertex data is linked / pointed to other array element.
http://pastebin.com/jpGTg9b3
Copy/paste from TRSI lighting example.
Bookmarks