framrate slowdow?n
Blitz3D Forums/Blitz3D Programming/framrate slowdow?n
| ||
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 |
| ||
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. |
| ||
ok thanks. i will look through and see if I can spot it. |
| ||
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. |
| ||
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. |
| ||
doh, it was a camera ie creating a camera every frame. don't ask how |
| ||
How? ;) |
| ||
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 |
| ||
Big time ROFL :) Keep up the good work! |
| ||
I will try!! |