Lags after about 10 min gameplay
#1
Posted 25 June 2012 - 12:26 PM
Could you please try the game and tell me if it lags after 10 minutes? Or if you have a video card that's able to be monitored it would be really
nice if you monitored it while playing. :D
http://www.mediafire...y4os4xc4o1qu9ll
#2
Posted 25 June 2012 - 12:47 PM
I didn't download it - however are there objects that are going outside the game room? If so be sure to destroy them, as that could be the cause of your lag. Or possible a variable that's constantly adding up etc.I've been working on this game for quite a while, and I've been developing it on my kinda crappy school computer. If I play and walk around for about 10 minutes the game's fps suddenly drops, it's like the processor doesn't want to try. There's no lag in the beginning and I really want to keep it that way. And I'm quite sure the problem doesn't have anything to do with objects in the background suddenly getting created and stuff, since if I turn the game off and back on when the lag has come, it stays that way for a long time.
Could you please try the game and tell me if it lags after 10 minutes? Or if you have a video card that's able to be monitored it would be really
nice if you monitored it while playing.
http://www.mediafire.com/?y4os4xc4o1qu9ll
Swifty
#3
Posted 25 June 2012 - 12:49 PM
1. Make sure when objects leave the room you destroy them. Especially if your room plays for a long time.
2. Dont scale too many objects. If you have several items you are scaling it's actually better to just make the sprite the appropriate size.
#4
Posted 25 June 2012 - 12:49 PM
#5
Posted 25 June 2012 - 01:07 PM
a monitoring device or notice some strange lag at certain moments, it would be great to know. Thanks.
#6
Posted 25 June 2012 - 01:16 PM
Also, deleting and creating surfaces could definitely cause lag but I don't understand why it wouldn't happen until 10 minutes into the game (unless the amount of surfaces being created grows as the game goes on and it builds up over time)
But I can't help, since for one thing I use a Mac and for another thing, I don't have any monitering software or whatever
Edited by dannyjenn, 25 June 2012 - 01:17 PM.
#7
Posted 25 June 2012 - 01:18 PM
Ah yes, if you're using surfaces be sure that you're freeing them properly when they're no longer used. To check your object count you could simply do something like this in a Draw Event:Well, I don't really use a lot of objects, I stay with grids and lists, the clouds and torches are objects though. But the blocks are just 192x192 surfaces (drawing each block wouldn't be possible, then the fps would be at 2 or something
). I thinkt the cause of the lag is that surfaces constantly need to be processed; deleted and created. But if any of you have
a monitoring device or notice some strange lag at certain moments, it would be great to know. Thanks.
draw_text(0,0,instance_number(all))Your surfaces you'll just have to make sure you're freeing each one when you're no longer using them.
Swifty
#8
Posted 25 June 2012 - 01:29 PM
I tried it on my other stationary windows xp computer, and it seemed to work fine there.
Edited by Dragon47, 25 June 2012 - 01:31 PM.
#9
Posted 25 June 2012 - 01:40 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











