Page 1 of 1

memory leak(S) ?

Posted: Sat Sep 13, 2003 2:45 am
by ste
Evrey time i click the "factory" button in the first menu (Command center) and then "exit", the game eat 1.2 Mb of memmory. it looks like there is quite a lot of problems like this, because after an afternoon of playing, i often get something like 150 mb of memory used just by TOS:WS. i have 368 mb of ram total and i realy feel the increased disk activity... i guess it hurt for the poor users who have just the 64 mb required.



--
// optimizing the memmory by removing useless functions
free(free);

and i forgot to say about the CPU

Posted: Sat Sep 13, 2003 3:12 am
by ste
well, nobody care, probably, but the game also use 100% of the cpu anytime, it's not a bug, but it's still strange for a turn based game to do that.

(my laptop commuter with TOS is like a plasma gun on a titan with an Heat 1)


--
// reminder : ask the boss to do a partnership with
// fan sellers
void mainloop() {
while (rand()*10000);
next_turn();
}

but...

Posted: Sat Sep 13, 2003 3:14 am
by ste
i forgot to say the game is great :)
(thoses little problem will not change my opinion)

Fix with first patch

Posted: Sat Sep 13, 2003 2:14 pm
by Marga
We will look into it and hopefully get it fixed with the first patch, which we hope to finish in about a week...

Posted: Sat Sep 13, 2003 4:34 pm
by LarkinVB
ste wrote:well, nobody care, probably, but the game also use 100% of the cpu anytime, it's not a bug, but it's still strange for a turn based game to do that.
The grafix/sound library used to do TOS:WS is polling, not thread based. The lib is called Allegro and free. If you are interested in game programming and don't want to hassle with DirectX or want to do a multi platform game it comes highly recommended.

Allegro game library