Archived

This topic is now archived and is closed to further replies.

Crawl

Framerate drop when tiling textures ???

Recommended Posts

I was just creating a simple brute-force terrain renderer to experiment with octree's. Everything runs fine until i start tiling the texture. example: for( DWORD i=0; i dwNumVerts; i++ ) { pVerts.tu *= 20.0f; pVerts[i].tv *= 20.0f; } Instead of having 1 textures covering the whole terrain, you now have 400 (20*20) textures tiled. But when i do this the framerate drops like a brick!! Does anyone know why?? I've been working with DirectX for 6-7 months now but never noticed this. Does DirectX prefer it's texture coordinates to stay within the 0.0 - 1.0 range ??? ---------------------------- "Quotes are cool" - Me Check out my game Asteroidz, it rules !!! Edited by - Crawl on February 20, 2002 2:14:56 PM Edited by - Crawl on February 20, 2002 2:15:41 PM

Share this post


Link to post
Share on other sites
Hi there,

I''ve never had a tiled texture cause any real noticable performance drops.

If you haven''t already, you might find the "MaxTextureRepeat" capability of the card and make sure you''re not exceeding it.

What kind of 3d card do you have?



Share this post


Link to post
Share on other sites
Depending on the size of the texture, it could be a fillrate problem. If you are tiling a 1024x1024 texture 400 times, it could eat your fillrate.

Moe''s Site

Share this post


Link to post
Share on other sites
If there''s anything to avoid with current hardware then it is texture state changes. Try using fewer textures and aggressivly batch (sort) tiles sharing the same texture.

quote:
Original post by Crawl
I was just creating a simple brute-force terrain renderer to experiment with octree''s.
Everything runs fine until i start tiling the texture.

example:
for( DWORD i=0; i dwNumVerts; i++ )
{
pVerts.tu *= 20.0f;
pVerts[i].tv *= 20.0f;
}

Instead of having 1 textures covering the whole terrain, you now have 400 (20*20) textures tiled.

But when i do this the framerate drops like a brick!! Does anyone know why?? I''ve been working with DirectX for 6-7 months now but never noticed this.

Does DirectX prefer it''s texture coordinates to stay within the 0.0 - 1.0 range ???


----------------------------
"Quotes are cool" - Me
Check out my game Asteroidz, it rules !!!


Edited by - Crawl on February 20, 2002 2:14:56 PM

Edited by - Crawl on February 20, 2002 2:15:41 PM


Share this post


Link to post
Share on other sites