Author Topic: Reason for lag  (Read 1467 times)

kup0

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
Reason for lag
« on: July 25, 2003, 02:40:51 pm »
no wonder it lags, try runing window mode and and have a program checking your ram you wil se the insane amont of ram used, i used ALT+CTRL+DEL (in Win XP) and checked the mem use  [172 MB OF RAM!!!] HOLY CRAP! no wonder it lags. if i have another 512 it might work, i only have 256 for the moment.

Well you DEV ppl realy need to find that hole, Might be a pointer puting things in the wrong place, thats quite common.
« Last Edit: July 25, 2003, 02:41:50 pm by kup0 »

Moogie

  • Forum Legend
  • *
  • Posts: 4551
  • Artist/Flash Animator
    • View Profile
(No subject)
« Reply #1 on: July 26, 2003, 03:19:34 am »
They know this already... I think. Well if you do, I\'m sure they do. Things will hopefully be fixed in Crystal Blue.

Sylus

  • Traveller
  • *
  • Posts: 11
    • View Profile
(No subject)
« Reply #2 on: July 26, 2003, 09:07:01 am »
Yeah, when I start PS it\'s at about 100 megs usage at the title screen... Then it climbs and doesn\'t stop until around 300mb usage.  Uses a good 70% or more of my CPU, too.

Isgrimnur

  • Hydlaa Citizen
  • *
  • Posts: 207
    • View Profile
(No subject)
« Reply #3 on: July 27, 2003, 12:31:52 am »
I\'ve also tried monitoring memory usage which shows you need a lot more memory than the 128Mb I\'ve got at the moment (Yes I know its not alot, I need a new computer).

It got to 128Mb Physical and 400Mb Virtual before my system crashed.

I think this is probably why although I can get in to the game it then takes the game about 1-2 minutes to refresh.
I have returned!!

Abemore

  • Hydlaa Notable
  • *
  • Posts: 508
    • View Profile
(No subject)
« Reply #4 on: July 27, 2003, 02:46:27 am »
run any other game (no, not solitaire), then come back and tell me how much memory that game uses.

Awaiting Invite from the Ordo Illuminatis.

Before you criticize someone, remember to walk a mile in their shoes...
...then when you criticize them, you\'ll be a mile away ...and you\'ll have their shoes.

LanceHeart

  • Traveller
  • *
  • Posts: 18
    • View Profile
(No subject)
« Reply #5 on: July 27, 2003, 07:44:02 am »
Quote
Originally posted by Abemore
run any other game (no, not solitaire), then come back and tell me how much memory that game uses.
I ran Age of Wonders 1.  More or less 100MB RAM usage at all times.
I also ran EverQuest.  250 MB RAM usage at all times, even at lag spikes.

Now PLEASE tell me why the heck is this game continually climbing up in RAM usage making it impossible for me to start playing?  I got up to 500 MB RAM usage from this darned game and it still was climbing and I couldn\'t play.  I got tired of waiting and shut it off since my 2.4 GHZ P4 was at max speed the whole time...

Kluger

  • Hydlaa Resident
  • *
  • Posts: 118
    • View Profile
(No subject)
« Reply #6 on: July 27, 2003, 09:10:32 am »
hmm, I had that happen, too.  mine shot up to 7.5GB and was killed for using up too much memory.  I have also heard other users complaining about a memory hole, but most often, I don\'t have one...

\"[172 MB OF RAM!!!]\"

This kinda surprises me, though.  I have a pretty steady 400MB to 450MB usage in Linux or Windows 98.  it runs okay on my sister\'s computer at the same memory usage, and she has 256MB RAM, but that\'s \'cause the memory is pretty well managed and the swap partition rarely accesses...
Read my Say\'s Law paper on my homepage!
I\'m here to test Linux PS and maybe find a friend or even a girlfriend, and jump from rooftop to rooftop.  ;-)
\"Despised and rejected, acquainted with grief, He bore the sins of the world.  He was wounded for our transgressions, bruised for our iniquities.\"

Isgrimnur

  • Hydlaa Citizen
  • *
  • Posts: 207
    • View Profile
(No subject)
« Reply #7 on: July 27, 2003, 01:01:25 pm »
Tried monitoring memory usage when running X-Beyond The Frontier and got the following results.

Physical Memory Usage = 60Mb
Virtual Memory Usage (Swap File) = 70Mb

And thats after trying to get the game to use as much memory as possible.

Its not even as if I\'ve got a brilliant Graphics card, ATI All in Wonder 128 pro (Rage 128 32Mb Chipset)
I have returned!!

Isgrimnur

  • Hydlaa Citizen
  • *
  • Posts: 207
    • View Profile
(No subject)
« Reply #8 on: July 27, 2003, 07:18:36 pm »
Ah. It suddenly seems as though my computer has decided it likes the game although I still get bad lag in some areas at least I can move about. :]
I have returned!!

kup0

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #9 on: July 28, 2003, 04:05:59 pm »
172 was the amount about 2 min after i shut the game. it might not be a leak i have another theory, I need DEV ppl for this. Ok go check the ram loading device, then make sure that the code closes the unused RAM Memory after using it, instead of opening a new memery \"slot\" if so to say,

E.x
(this is the ram)
0=unused
8=using
?=used

(at start)
0000 0000 0000

(after awhile)
8888 0000 0000

(LAG)
???? 8888 0000

it shoud be like 0000 8888 0000

that is what i think is the problem the ram is not used anymore but the program does not re use it.
« Last Edit: July 28, 2003, 04:06:34 pm by kup0 »

xlorepdarkhelm

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #10 on: July 28, 2003, 06:57:31 pm »
Quote
Originally posted by LanceHeart
Quote
Originally posted by Abemore
run any other game (no, not solitaire), then come back and tell me how much memory that game uses.
Now PLEASE tell me why the heck is this game continually climbing up in RAM usage making it impossible for me to start playing?  I got up to 500 MB RAM usage from this darned game and it still was climbing and I couldn\'t play.  I got tired of waiting and shut it off since my 2.4 GHZ P4 was at max speed the whole time...


When programming, in order to use system memory, a programmer/coder needs to \"allocate\" memory to a specific purpose, which tags a section of RAM to be specifically used for the purpose the programmer has designated (like a character\'s name, or even the point and line locations for 3D graphics.

Now, when programming, it is important in every language that you are allowed to allocate memory (except Java, but that\'s a different topic) for the programmer to remember to do something called \"de-allocating\" RAM, which is letting the operating system, and the computer in general know that he/she is done with that piece of RAM, making it available to be used for something else.  This is of utmost importance, and is usually something as simple as 1 or 2 lines of programming code.

Unfortunatly, while this sounds simple enough, it\'s rather quite easy to miss one or two lines of code when writing a program.  Distractions, absent-mindedness, sleep, (alcohol), and probably dozens of other factors battle against all programmers while they are writing, resulting in what most people call \"bugs\".  Bugs that are a result of not deallocating memory are most commonly known as \"memory leaks\".  The result is quit frequently that the program takes an ever-increasing amount of RAM while it is running, and even after you shut the program down, it could possibly still have left some RAM as unusable (locked out), which the most effective solution to this is to reboot the computer, to \"flush\" the memory usage roster/system in the computer, resetting it and eliminating the problem.

So, to answer your question, i\'d say that it is because the game is in Pre-Alpha.  That means it is chalked FULL of bugs, some of which are possibly memory leaks.  And don\'t forget, you asked for it.


FYI: programs that I have found have memory leaks that aren\'t fixed when released include:  Age of Empires 2, EverQuest (and the first 4 expansions, however they fixed them in patches), Diablo, Diablo II, Warcraft 3, Heroes of Might and Magic 4 (unless they fixed it in the expansion, it still is there from the latest \"main\" game patch), Windows 3.x, Windows 95, Windows 98, Windows 98SE, Windows ME, Windows NT-XP (not as bad), to name a few.  It\'s a common enough bug, some are worse than others, but an ever-increasing number of programs are released without getting memory leaks cleaned up.
« Last Edit: July 28, 2003, 07:02:01 pm by xlorepdarkhelm »
\"I\'m not responcabel fer my comuter\'s spleling errnors.\"