Hi,
a few weeks ago I started my own game project, I made 90% of everything with logicbricks since I had no python knowledge.
But now things become too complicated for just only logic bricks. So I learned python and ~~ 1 week ago I started replacing all logic bricks with python modules. Now I’m almost done with that, but now I notice that sometimes when I play the game it begins to lag. Before I started replacing everything with python this was how the profile looked like:
Framerate 60 fps
Physics 1%
Logic 1%
Animations 0%
Network 0%
Scenegraph 0%
Rasterizer 90%
Services 0%
Overhead 6%
Outside 0%
GPU latency 0%
Now it looks like this and its very very unstable:
Framerate 60 fps
Physics 1%
Logic 0%
Animations 0%
Network 0%
Scenegraph 0%
Rasterizer 8%
Services 20%
Overhead 6%
Outside 60%
GPU latency 0% (now it is 0% but a lot times it is something like 60%)
As I said, it is very unstable: sometimes Outside goes above 90%, but sometimes GPU latency does.
I searched on the internet what all those things mean. If I’m not wrong: outside means that something outside the BGE is taking down the peformance, and you don’t have control over it. But I tried to play the game with and without a lot of other applications running in the background but it doesn’t make any difference.
Everytime I play the game I have 30% chance it is going to lag.
I hope there is a way to get this stable because it would be very annoying for people to have chance the game will lag everytime they startup the game.
I know this is a bit vague, but maybe you can tell me what is happening.
Thanks