ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sat Nov 17, 2018 10:00 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Mar 25, 2013 9:54 am 
Offline
Loremaster

Joined: Thu Sep 23, 2010 10:18 pm
Posts: 3516
Location: London, England
In Mosaic if you leave the game running long enough it starts to grow in RAM usage, going up to over a Gig. Possible memory leak somewhere? I've had a look and I don't think it's a problem with the sound files, as these come to about 150 Mb as wav files. Possibly an issue with the tiles generation? There are about 100 million possible tiles...

The RAM thing isn't so serious for me as a CPU issue. After some time playing it shoots up to fill 3 of my 4 cores and grinds to a slow pace. Turning off the music and the starry background don't help with this. Could be my poor coding to blame somewhere... Any tips on how to check for something I'm doing hideously wrong? It's a shame because normally the game is blissfully quick, in spite of all my crazy code!

_________________
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes


Top
 Profile  
 
PostPosted: Mon Mar 25, 2013 8:47 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10230
Location: Angolwen
Hum if it max uses *multiple* cores there are very few culprits, since not many things run in separate threads:
- music
- sounds
- particle effects
- network code

If you removed all music & sound and didnt tuoch the network code the only one left are particle effects.
It is easy to make immortal particles that will keep on running (as in being computed, not being displayed) forever

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
PostPosted: Mon Mar 25, 2013 9:24 pm 
Offline
Loremaster

Joined: Thu Sep 23, 2010 10:18 pm
Posts: 3516
Location: London, England
Hmm, interesting. Will have a root through...

_________________
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes


Top
 Profile  
 
PostPosted: Mon Mar 25, 2013 9:59 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10230
Location: Angolwen
?

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
PostPosted: Tue Mar 26, 2013 12:13 pm 
Offline
Loremaster

Joined: Thu Sep 23, 2010 10:18 pm
Posts: 3516
Location: London, England
The only particle effects I use in the game are single instance ones, so not sure what's going on. I do use them a *lot* and very regularly though, as they display the beats of the music on the map.

Some of the enemies have some particle things they use regularly. Maybe I should profile each enemy to see if it's a particular one...

_________________
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes


Top
 Profile  
 
PostPosted: Tue Mar 26, 2013 6:54 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10230
Location: Angolwen
Yeah it's probably how you add/remove them then yeah

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group