Lag issue.

Started by MoonDog, Fri 14/08/2015 18:07:28

Previous topic - Next topic

MoonDog

What would cause a game to lag? It's never done it before till yesterday. Could having too many things in a room make it lag? Or is my laptop starting to slow down because the game is "growing" in size?

AnasAbdin

Check your repeatedly_execute in the room script and repeatedly_execute_always in your global script before any conclusions :-\

Crimson Wizard

A bit of nerdy nitpicking, "lag" is a problem you get with network connection; in common case it is slowdown or "fps drop". ;)

Having a lot of objects and regions in the room should not slow it down, usually, but a lot of things done in script, or non-optimally written script may.
Also, if your game is hi-res, and you use effects like translucency, it may slow down with software renderer, because AGS does not handle that very well.

Well, you need to remember what did you add to your game before it started.

MoonDog

Ah I see. Well I've narrowed it down to two rooms I'm which my game slowsdown and it's only during the day night transition. It never did this problem before so now checking what I did in those rooms recently and also checking my repeadely_execute in both rooms plus global.

Ps I wish someone corrected me about the term Lag along time ago. I've been using the word wrong 90% of the time haha.

MoonDog

Ok so I've come to the conclusion that it might be my laptop that's causing this problem since I've undid everything new that might have caused the problem(after making a back up).  So I decided to compile it and try on a different laptop and it working much better, still a slight delay during the night and day transition but not so bad that it will make a person want to quit the game. Hopefully I can figure out the real problem soon.

Cassiebsg

Just a wild guess, but if you think your computer can't follow up with the data, try running winsetup and setup the sprite cache to 100Mb. Has helped me once to play a game I was unable to with the default of 20Mb.
There are those who believe that life here began out there...

MoonDog

Quote from: Cassiebsg on Sat 15/08/2015 20:30:55
Just a wild guess, but if you think your computer can't follow up with the data, try running winsetup and setup the sprite cache to 100Mb. Has helped me once to play a game I was unable to with the default of 20Mb.

That actually helped it to run much smoothly! Thank you a million.

SMF spam blocked by CleanTalk