Hi everyone!
I have currently been working on a game for a few months as a hobby. Everything has been going quite well, but recently I have discovered that every 5-6 seconds the whole thing (and i freezes for a fraction of a second. The room speed (fps) drops to 30-20 for a moment. Strangely, the fps_real never seems to drop under 90, according to the graph.
At first I thought this was due to bloated Draw & Step events, or Alarm events that had intervals that were too small, but after stripping the code that I thought could the problem, nothing really changed.
Now I noticed that this also occurs in other rooms (I have two 'pre-game' rooms for settings and stuff, with little to no code in it). So, if i'm not mistaken, bloated events/performance, isn't really the issue here? Could it be that my entire computer just freezes for no reason in stead of the game?
The game itself isn't very big (160mb memory at runtime) which is why i don't think coding hs anything to do with it.
I hope I gave enough information and that this isn't a very noobish question Thank you so much for your advice & help!!
I have currently been working on a game for a few months as a hobby. Everything has been going quite well, but recently I have discovered that every 5-6 seconds the whole thing (and i freezes for a fraction of a second. The room speed (fps) drops to 30-20 for a moment. Strangely, the fps_real never seems to drop under 90, according to the graph.
At first I thought this was due to bloated Draw & Step events, or Alarm events that had intervals that were too small, but after stripping the code that I thought could the problem, nothing really changed.
Now I noticed that this also occurs in other rooms (I have two 'pre-game' rooms for settings and stuff, with little to no code in it). So, if i'm not mistaken, bloated events/performance, isn't really the issue here? Could it be that my entire computer just freezes for no reason in stead of the game?
The game itself isn't very big (160mb memory at runtime) which is why i don't think coding hs anything to do with it.
I hope I gave enough information and that this isn't a very noobish question Thank you so much for your advice & help!!