Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-General/Help/Strategy/Multiplaying-Archive > CTP and the memory leak
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Lou Wigman is offline Lou Wigman
Warlord
Newcastle,Australia
Jun 2001
time: 15:16
  Old Post 18-12-2001 17:38
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
CTP and the memory leak Lose 30 kilos (of popups)

It seems that CTP2 (and CTP1) has a bad memory leak.

For those of you that don't what this is I'll try and explain.

When CTP does its calculations it needs some memory to do this.(RAM) The game therefore request Windows to set aside an appropriate amount. This is necessary so that if another process running on your PC needs some resources Windows knows that this particular block has been asigned to CTP. Here's the rub. When CTP has finished it does not tell windows that the memory is no longer needed. Next time some memory is needed Windows assigns another (new) block. Again this is not released. Soon all 256 MB of RAM is filled with crud. When CTP now asks for some memory windows frees some up by putting stuff on the hard drive. All of a sudden the hard disk starts to whirr furiously and the game slows to a crawl. Quitting CTP has no effect since windows still thinks that the memory is in use. Only restarting the PC will work.

This bug makes CTP virtually unplayable. Does anyone know of a patch or work around for this problem?

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:16
  Old Post 19-12-2001 01:44 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Remove this text

1. Name me one (fairly) recent commercial game/app that *doesn't* have any kind of resource leak (with all these 2GHz 512 MB systems, programmers are soooo sloppy these days - long live the 640k era! )

2. When Windoze is your OS, it's ALWAYS a good idea to reboot your system every few hours/days (depending on intensity of usage), with or without playing CtP. Nothing new here....

3. At least on my system the problem isn't nearly as bad as you describe: I've played CtP for many hours on end and not had any really unacceptable delays (although with time it *does*get slower and slower). Do you have the patches installed? (Not sure if they fix any memory leaks though)

4. How often do you play games for hours on end anyway? I mean, don't you have a life or anything?

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:16
  Old Post 19-12-2001 03:41 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Locutus
2. When Windoze is your OS, it's ALWAYS a good idea to reboot your system every few hours/days (depending on intensity of usage), with or without playing CtP. Nothing new here....

When windoze is your OS, the PC crashes three times every evening anyway, so there's no problem.

Lou Wigman is offline Lou Wigman
Warlord
Newcastle,Australia
Jun 2001
time: 15:16
  Old Post 19-12-2001 04:07
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Put an end to popups!

The problem becomes apparent after about 10 turns. My earlier PC had 128 MB of RAM and only about 5 turns were needed.

I am an old codger and have already had a lifle. What is left is devoted to playing computer games. I also dapple in designing and programming my own to play with friends.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:16
  Old Post 19-12-2001 06:47
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization 2

Hi, Lou

Welcome onboard.

quote:

The problem becomes apparent after about 10 turns. My earlier PC had 128 MB of RAM and only about 5 turns were needed.


Wow, that's strange. I've only got 128 MB and I've never noticed any problem. Also, I think you're the first one to bring this up; surely if it were a more common problem someone would have mentioned it earlier. You say it affects CTP1 too? Maybe it would be an idea to post a question in CTP1 Multiplayer. I think there's still a lot of guys playing it so there's more likely to be someone there who has come across it.

You mentioned earlier:

quote:

In my view the most serious drawback of CTP2 is the almost total passivity of the AI. Given that there will be no CTP3 is there any point in 'brainstorming' the CTP2 AI to see what can be done? (I know that some work has already been done in this regard.)


Although much has been done, IMHO there's still much more that could be done. Paradoxically, one of the big drawbacks of CTP2 is that it is so modifiable. You can change almost anything; in particular, you can virtually completely rewrite the AI. Check out player1's thread "Strategic CODE " in the CTP2-Creation/... forum. As Locutus pointed out there, in theory you could completely clear the existing strategies and then start over from scratch. But as he went on to note, this would just be too huge an undertaking. Still, there's lots of room for experimentation.

So, the problem is, though, that even after a year, it's difficult to know where to start. I see you're a programmer, so if you're interested and you've got some time on your hands, this has got to be the forum for you. There's definitely a point to 'brainstorming' the AI: for example, the problems of getting the AI to use it's Aircraft carriers properly and also to mount amphibious invasions have never been addressed.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:16
  Old Post 19-12-2001 18:25 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
Originally posted by Peter Triggs
Wow, that's strange. I've only got 128 MB and I've never noticed any problem.

Heck, I used to play CtP1 on 32 MB and never had any problems (now I'm have 64 MB and, like I said before, still no problems). That's very weird, after just 10 turns.

quote:
I see you're a programmer, so if you're interested and you've got some time on your hands, this has got to be the forum for you.

Yeah, we can always use some fresh blood Join us now, you won't regret it!

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:16
  Old Post 19-12-2001 21:06 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Locutus
Yeah, we can always use some fresh blood Join us now, you won't regret it!

Wow, Locutus missed an opportunity to say:
YOU WILL BE ASSIMILATED

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:16
Post  Old Post 19-12-2001 22:14 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Browse Apolyton AD-FREE

quote:
Originally posted by Peter Triggs
Wow, that's strange. I've only got 128 MB and I've never noticed any problem.


quote:
Originally posted by Locutus
Heck, I used to play CtP1 on 32 MB and never had any problems (now I'm have 64 MB and, like I said before, still no problems). That's very weird, after just 10 turns.


I never had this problem. Neither on my current computer (Athlon 1333 Mhz, 255 Mb Ram, Windoze98) nor on my old one (K6 233 Mhz, 64 Mb Ram, Windoze95). I had only a problem with CTP1 this bug caused a crash everytime I tried to load an advanced savegame, I had to throw 2 files into the dustbin before loading a savegame and it worked. That was before the hack patch, so my question do you have the patch installed? I guess you have but nevertheless I should ask.

-Martin

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:16
  Old Post 20-12-2001 01:17 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Call to Power 2

quote:
Originally posted by Immortal Wombat

Wow, Locutus missed an opportunity to say:
YOU WILL BE ASSIMILATED


Ssssssst... assimilating human beings over the Internet is very tricky, therefore we have adapted: we now only inform drones of their assimiliation after the act. BTW, Big Mc: you have been assimilated, your distinctiveness has been added to our own

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:16
  Old Post 20-12-2001 18:31 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Ah, most cunning.

Changmai Beagle is offline Changmai Beagle
Warlord
Corporate Warlord of the Great White North & Warmer Climes
Oct 1999
time: 22:16
  Old Post 21-12-2001 05:07
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Assimilation Support Apolyton buy from Amazon

Lou......Beware. Could wind up all your bases are belong to us!!!!

Actually, I believe I am running into this problem. I thought I was just running a whole lot of decisions by other civilizations in the background, but I couldn't understand why it was still sludgy during my turn

Wow - a fix would be great. I'd volunteer, but I'm not much of a programmer.

Last edited by Changmai Beagle on 21-12-2001 at 05:28

Lou Wigman is offline Lou Wigman
Warlord
Newcastle,Australia
Jun 2001
time: 15:16
  Old Post 23-12-2001 12:00
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton buy from Amazon

Well, I must confess that the memory problem only manifests itself in the mid game when presumably there is lots going on. Still with 256 MB of RAM there should be no need to go to the hard disk except perhaps to look up a few things. Even this is problematical though since it ALL should fit comfortable in RAM. The difference in performance is huge. For those of you who have not experienced the problem perhaps you should 'attune' yourselves to what your PC is actually doing.

As for helping with MODS I am happy to. I am (was) a database programmer and my skill with low level languages is limited. As pointed out the problem with the CTP AI is that there are just too many variables. Leaving aside for the moment whether the game engine is actually capable of doing anything 'smart' there are more possible combinations and permutations than there are atoms in the universe.

My suggestion for 'brainstorming' the AI would fall into several parts. Firstly decide just how exactly we want the AI to behave. Then start varying the parameters in a systematic way and play test and play test and play test.

I have been playing CRA and am enjoying it immensely. This is far better than Civ3. MODded CTP is simply a hugely under rated game worthy of more attention

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:16.
Apolyton Time is 00:16.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0372 seconds (90.04% PHP - 9.96% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net