Question about Efficiency & device check

Started by
2 comments, last by zonozz 11 years, 1 month ago

Hi everyone !

Question about Device Check -

I'm now doing multi-texture , I create class texture sequence for multi-texture blending, and I want to check what's the max number the device can make blending one time ? how to do that ?

Question about Efficiency -

Eh. another question is about data structure( algorithms ) in engine, I just use MyVector, which is I study C++ STL practicing stuff, for saving variety of resources in engine, like models/Text/etc. Should I consider more careful in data structure for resources saving ? I think it may be affect engine's operational efficiency.

Please make some comments about this module, I will very thankful.

Advertisement

If you're using DirectX 9, you can query the maximum amount of concurrent samplers by using this function, and checking the "MaxSimultaneousTextures" value of the D3DCAPS9 class you receive.

If you're using DirectX 11, I believe it's 128 but I forget how to query it.

As far as the std::vector goes, it's a big debate. The std::vector is fantastic at it's job, in that it takes care of all the copying you have to worry about, even with objects that use constructors and destructors. But it's also very expensive for that reason. So it really depends on how often that is necessary for you.

Perception is when one imagination clashes with another

If you're using DirectX 11, I believe it's 128 but I forget how to query it.

there is a define called D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT (indeed 128)

If you're using DirectX 9, you can query the maximum amount of concurrent samplers by using this function, and checking the "MaxSimultaneousTextures" value of the D3DCAPS9 class you receive.

If you're using DirectX 11, I believe it's 128 but I forget how to query it.

As far as the std::vector goes, it's a big debate. The std::vector is fantastic at it's job, in that it takes care of all the copying you have to worry about, even with objects that use constructors and destructors. But it's also very expensive for that reason. So it really depends on how often that is necessary for you.

If you're using DirectX 11, I believe it's 128 but I forget how to query it.

there is a define called D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT (indeed 128)

Thank you guys, I will collect more experience, and try to read some open source engines code, and then make decision.

This topic is closed to new replies.

Advertisement