Frame rate issue
Posted: Thu Oct 12, 2017 4:41 am
Hi there, I've been making a game in Z-game editor (this is actually a different one to the last game I mentioned on these forums) but I’ve run into a little problem and I’m not sure of the cause.
So first a bit of background, The game is a first person perspective game and if the player dies (from a hazard or whatnot) then the game removes all models and runs a game over appstate (game over screen) From the game over screen you can restart the level. Anyway this all works fine and there are already several levels, however with the latest level Iv'e noticed a problem (as of today) which goes like this. Loading the level is no problem, everything works fine, dieing and loading the game over screen is also not a problem, but on returning to the level the second time (and sometimes strangely on the 3rd death), the frame rate drops considerably. I have no idea why this is occuring, (since all the other levels work fine, with multiple deaths), this level is particularly large but still I have no idea. I was thinking what might be the cause is that some models are defining variables which have already been defined (and thus clogging up the memory) but other than that I have no idea.
There are a few invisible models (that don't render anything) which spawn fire like particles.
Here's a screenshot of the game, and the level btw.
Any thoughts?
So first a bit of background, The game is a first person perspective game and if the player dies (from a hazard or whatnot) then the game removes all models and runs a game over appstate (game over screen) From the game over screen you can restart the level. Anyway this all works fine and there are already several levels, however with the latest level Iv'e noticed a problem (as of today) which goes like this. Loading the level is no problem, everything works fine, dieing and loading the game over screen is also not a problem, but on returning to the level the second time (and sometimes strangely on the 3rd death), the frame rate drops considerably. I have no idea why this is occuring, (since all the other levels work fine, with multiple deaths), this level is particularly large but still I have no idea. I was thinking what might be the cause is that some models are defining variables which have already been defined (and thus clogging up the memory) but other than that I have no idea.
There are a few invisible models (that don't render anything) which spawn fire like particles.
Here's a screenshot of the game, and the level btw.
Any thoughts?