I am running a car on a long road which is getting generated as the car travels. The road is made up of child models which i am hiding and showing to enable culling in blitz. I have noticed that available video memory keeps on going down as i move ahead and generated tracks. What could be reason? Need help
For i=1 To CountChildren(road)
If EntityDistance(mycar,GetChild(road,i))<100
ShowEntity GetChild(road,i)
Else
HideEntity GetChild(road,i)
End If
Next
For i=1 To CountChildren(road)
If EntityDistance(mycar,GetChild(road,i))<100
ShowEntity GetChild(road,i)
Else
HideEntity GetChild(road,i)
End If
Next