Re: Program is terribly slow
- From: "Gernot Frisch" <Me@xxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 09:49:31 +0200
I get about 43 fps with a 7800GS.
Well thats more than 1.9, but for "simple" sphere mapping, this
looks kind of slow to me.
The only lines I changed are the ones with "m_ShpereMapping". What can
it be that makes it so slow!?
# # #
if(m_LightsOn || m_SphereMapping)
{
glEnableClientState(GL_NORMAL_ARRAY);
glNormalPointer(GL_FLOAT, sizeof(POLY_NODE),
BUFFER_OFFSET(((BYTE*)&tNodes_all->normal)));
}
if(m_SphereMapping)
{
glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
glEnable(GL_TEXTURE_GEN_S); glEnable(GL_TEXTURE_GEN_T);
}
glDrawArrays(GL_TRIANGLES, 0, the_obj.m_tri_animation.Size());
if(m_SphereMapping)
{
glDisable(GL_TEXTURE_GEN_S); glDisable(GL_TEXTURE_GEN_T);
}
# # #
.
- Follow-Ups:
- Re: Program is terribly slow
- From: fungus
- Re: Program is terribly slow
- References:
- Program is terribly slow
- From: Gernot Frisch
- Re: Program is terribly slow
- From: Maik Wagner
- Program is terribly slow
- Prev by Date: Re: Mesa 3D for Mac OS X
- Next by Date: Re: Program is terribly slow
- Previous by thread: Re: Program is terribly slow
- Next by thread: Re: Program is terribly slow
- Index(es):