Texture Cache and Performance Issue

Hi all,

I had a 64 by 64 by 64 dataset.

Previously i was loading this dataset as a slabs of 2D texture 16 at a time and do operation on it.

i.e. load 16 slabs as a 16 2D texture and do operation then load another 16 and so on.

Later i decided to load all the slabs i.e. 64 2D slabs at once and do operation at once.

But i am noticing the performance time increases when i load all the dataset at once as a texture in GPU as compared to the time required when i loaded 16 at a time.

Is this performance lag due to more misses in texture cache?

will loading all the data as 3D texture help me in any way?

Basically i wanted to know how will texture size effects the texture cache?

thank you
miztaken

Hi all,

I had a 64 by 64 by 64 dataset.

Previously i was loading this dataset as a slabs of 2D texture 16 at a time and do operation on it.

i.e. load 16 slabs as a 16 2D texture and do operation then load another 16 and so on.

Later i decided to load all the slabs i.e. 64 2D slabs at once and do operation at once.

But i am noticing the performance time increases when i load all the dataset at once as a texture in GPU as compared to the time required when i loaded 16 at a time.

Is this performance lag due to more misses in texture cache?

will loading all the data as 3D texture help me in any way?

Basically i wanted to know how will texture size effects the texture cache?

thank you
miztaken

interesting how do oyu index 16 slabs of 2d texture?

interesting how do oyu index 16 slabs of 2d texture?

Hi there,

i just made a 2D textures for 64 by 64 data.

I made 16 more textures like that.

and i am accessing index by using methods tex2D(tex1,x,y) … for second texture tex2D(tex2,x,y)

Did i answered your question?

is there anything i am doing wrong?

Hi there,

i just made a 2D textures for 64 by 64 data.

I made 16 more textures like that.

and i am accessing index by using methods tex2D(tex1,x,y) … for second texture tex2D(tex2,x,y)

Did i answered your question?

is there anything i am doing wrong?

you are lucky to address textures by names.

you are lucky to address textures by names.

what do u mean?

what do u mean?

if you have index x,y,z how do you transform index to texture name?

if you have index x,y,z how do you transform index to texture name?