VBGamer |
|
RE: D3D speed question NetArc (0 replies, 0 views) (2000-Jul-3) what about everytime u set the texture u set a variable along with it like this:
TexName = "TreeFace"
Device.SetTexture DirectDrawSurface7
and then u add someway so it avoids it if the texture has remained the same
this is a way that i have it in a old engine
Sub SetTexture ( NewTexName as Sring, DSurf as DirectDrawSurface7 )
If NewTexName = TexName then Exit Sub
' set our new texture name
TexName = NewTexName
' set our texture
Device,SetTexture DSurf
End Sub
just a sample, i hope it helps you...
good luck
|