Archived

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

ShlomiSteinberg

What is the fastest texture filter?

Recommended Posts

1. GL_NEAREST is the fastest, you don''t have any interpolation so that''s often pretty ugly.

2. GL_LINEAR_MIPMAP_NEAREST ang GL_LINEAR both use bilinear interpolation. However, by using mipmap, you use more video memory. On the other hand, it can reduce the bandwidth usage, thus speeding up the rendering. Mipmaping can get rid of nasty artifacts on far away objects too.

3. GL_LINEAR_MIPMAP_LINEAR is the slowest but looks better than the others. (trilinear interpolation).

Share this post


Link to post
Share on other sites
I''ve found the mipmap filters to be quicker than GL_NEAREST when the texture is rendered small, presumably because it uses less bandwidth. In some circumstances, even GL_LINEAR_MIPMAP_LINEAR beats GL_NEAREST.

Share this post


Link to post
Share on other sites
quote:
Original post by benjamin bunny
I''ve found the mipmap filters to be quicker than GL_NEAREST when the texture is rendered small, presumably because it uses less bandwidth. In some circumstances, even GL_LINEAR_MIPMAP_LINEAR beats GL_NEAREST.


I stand corrected.

I''ve just given a look to the red book and the fastest filtering mode, although it wasn''t considered in the original post, should be GL_NEAREST_MIPMAP_NEAREST. It has the simplicity of the GL_NEAREST mode and the bandwidth advantage of mipmap based filters.

Share this post


Link to post
Share on other sites