its solved now... I don't know what was the problem but now it returns a higher framerate, which varies when I move the camera
I now tested the loop to hide objects. It lets the framerate drop from 160 to 140 fps (not that this is visible but it might make the difference when I'll use more objects)
this is the code I used to hide objects. it's a gosub which is called every frame in the main loop
hiding:
for obj=1 to 4000
if object exist(obj)
if object in screen(obj) : show object obj
else : hide object obj
endif
endif
next obj
return
any suggestions to make it faster? I often read that people have a faster frame rate when they hide things... or maybe it could only be faster when you use more objects? now there are 16344 poly's visible...
hmm changing the screen res gives also a higher frame rate... 190 (320*240*16) instead of 160 (1280*1024*32), but offcourse that's not the way of boosting the speed that I'm thinking of...
[href]www.bernardfrancois.com[/href]