framrate slowdow?n

Blitz3D Forums/Blitz3D Programming/framrate slowdow?n

Ruz(Posted 2004) [#1]
just noticed that my framerate has suddely began to die in my demo. starts off at about 40 fps, then gradually after about 5 mins slows right down to 1 fps no matter what I do.
any idea vaguely what might be causing something like this


Warren(Posted 2004) [#2]
I had a similar situation once. Turned out I was creating a pivot every frame and not deleting it... Took a while to find that one.


Ruz(Posted 2004) [#3]
ok thanks. i will look through and see if I can spot it.


_PJ_(Posted 2004) [#4]
I had a similar situation once. Turned out I was creating a pivot every frame and not deleting it... Took a while to find that one.


Me too with some sprites.


Techlord(Posted 2004) [#5]
One of many reason why I insist on using a 'recycling' entity management system. I good example of this is your basic particle system. The methodology could be applied all game objects and entities.


Ruz(Posted 2004) [#6]
doh, it was a camera
ie creating a camera every frame.
don't ask how


poopla(Posted 2004) [#7]
How? ;)


Ruz(Posted 2004) [#8]
well my player update function is pretty big and I absent mindedly placed a test camera within that function, which is updated every loop, hence a camera was being created constantly ,slowing the frame rate to zero.
I have a habit of right clicking copy and pasting stuff in to new places when tidying up my code. thats how it got placed there by mistake.

told you not to ask


eBusiness(Posted 2004) [#9]
Big time ROFL :)
Keep up the good work!


Ruz(Posted 2004) [#10]
I will try!!