Page 1 of 1

Skipping color/normal/texcoord arrays?

Posted: Tue Jul 03, 2012 9:50 pm
by hendu
I assume at least some advantage can be gained by not enabling unneeded arrays, even though they do get uploaded to the card, since normals and texcoords are already disabled for points and point sprites.

Given they do take up VRAM in the VBO case, would there be any measurable gain there? In the vertex array case there would certainly be, as then it could skip uploads to the card.


I propose a new field for SMaterial, SkipArrays, that would contain flags on whether to not enable colors, texcoords, and/or normals for this drawing.

ESA_COLORS, ESA_TEXCOORDS, ESA_NORMALS...

Re: Skipping color/normal/texcoord arrays?

Posted: Wed Jul 04, 2012 12:33 am
by Nadro
You have similar features in shader-pipeline branch (flexible vertex format), so no more options for it is require in my opinion :)

Re: Skipping color/normal/texcoord arrays?

Posted: Wed Jul 04, 2012 8:11 am
by hybrid
Yeah, once you can set which properties shall be used frmt he vertex information, you have these things automatically. Hopefully we can also support some of the features in the fixed function pipeline later on.

Re: Skipping color/normal/texcoord arrays?

Posted: Wed Jul 04, 2012 11:49 am
by hendu
OK, I'll just add it for my 1.7 branch then, the FVF is probably still years away ;)

Re: Skipping color/normal/texcoord arrays?

Posted: Wed Jul 04, 2012 12:22 pm
by Nadro
hendu wrote:the FVF is probably still years away ;)
Why You think that?

Re: Skipping color/normal/texcoord arrays?

Posted: Wed Jul 04, 2012 12:43 pm
by hendu
Oh, I don't doubt that it's usable already; I mean the glacial pace of irrlicht trunk, it'll be years before FVF is in a released irrlicht.

Re: Skipping color/normal/texcoord arrays?

Posted: Wed Jul 04, 2012 12:57 pm
by Nadro
I hope that we'll surprise a community this time on the pace of implementation time for new features :)

Re: Skipping color/normal/texcoord arrays?

Posted: Sun Jul 08, 2012 10:56 am
by fmx
^ really glad to hear that Nadro :D
I was also expecting we might not see FVFs properly in irrlicht for some years, judging by past irrlicht releases