i wonder dosent this doe the same thing as i got about the same fps increase with it?
for t=grass to grass+99
if object in screen(t)=1
if object visible (t)=0 then show object t
else
if object visible (t)=1 then hide object t
endif
next t
only nag is that you now have to put this routine inside the loop for all objects you want hiden when not on screen.
like this.
for t=grass to grass+99
if object in screen(t)=1
if object visible (t)=0 then show object t
else
if object visible (t)=1 then hide object t
endif
next t
for t=trees to trees+99
if object in screen(t)=1
if object visible (t)=0 then show object t
if object visible (t+tree_shadow)=0 then show object t+tree_shadow
else
if object visible (t)=1 then hide object t
if object visible (t+tree_shadow)=1 then hide object t+tree_shadow
endif
next t
iam planning to make this to an function instead to save lines of code but are currently working on the camera movement on an landscape with alot of height differences.
and its now extremely smooth yust a few adjustments.
you dont know an good routine to rotate the camera around an axis around the middle of the screen?
this is my only current issue with the camera movement.
AMD ATHLON 64 3200+ AGP8X 1GB RAM 1MB CACHE.ATI RADEON 9800PRO 128MB AGP8X.