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...
Skipping color/normal/texcoord arrays?
Re: Skipping color/normal/texcoord arrays?
You have similar features in shader-pipeline branch (flexible vertex format), so no more options for it is require in my opinion
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Skipping color/normal/texcoord arrays?
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?
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?
Why You think that?hendu wrote:the FVF is probably still years away
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Re: Skipping color/normal/texcoord arrays?
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?
I hope that we'll surprise a community this time on the pace of implementation time for new features
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Re: Skipping color/normal/texcoord arrays?
^ really glad to hear that Nadro
I was also expecting we might not see FVFs properly in irrlicht for some years, judging by past irrlicht releases
I was also expecting we might not see FVFs properly in irrlicht for some years, judging by past irrlicht releases