T-Engine performance issues

Moderator: Moderator

Post Reply
Message
Author
Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

T-Engine performance issues

#1 Post by Grey »

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

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: T-Engine performance issues

#2 Post by darkgod »

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 ;)

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: T-Engine performance issues

#3 Post by Grey »

Hmm, interesting. Will have a root through...
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: T-Engine performance issues

#4 Post by darkgod »

?
[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 ;)

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: T-Engine performance issues

#5 Post by Grey »

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

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: T-Engine performance issues

#6 Post by darkgod »

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 ;)

Post Reply