Page 1 of 1

Game is only playable with --flush-stdout option? [No.]

Posted: Thu Apr 12, 2012 1:28 pm
by Lord Estraven
I just ran t-engine with the --flush-stdout option in an effort to track down where the huge, system-freezing memory allocations started... And to my surprise the game did not freeze, and runs ridiculously faster. Everything works. Everything is playable. But only if I use --flush-stdout, otherwise it it allocates 3 GB of RAM and triggers the OOM killer.

What's going on here?

Re: Game is only playable with --flush-stdout option?

Posted: Thu Apr 12, 2012 1:51 pm
by darkgod
Really ? now that's quite interresting ... Thanks!

Re: Game is only playable with --flush-stdout option?

Posted: Thu Apr 12, 2012 2:11 pm
by Lord Estraven
You're welcome. :D

Re: Game is only playable with --flush-stdout option?

Posted: Thu Apr 12, 2012 2:36 pm
by darkgod
Can you try with --no-debug instead ?

Re: Game is only playable with --flush-stdout option?

Posted: Thu Apr 12, 2012 3:07 pm
by Lord Estraven
I believe I spoke too soon...

On Ubuntu 10.04 (with a 3.2.0 kernel) --flush-stdout works fine. On Slackware 13.37 derived distros, not so much. --flush-stdout prevents the system from crashing completely, but T4 still attempts to allocate ~3GB of memory, server latency goes through the roof, and the game stops rendering anything. Strangely the Intel driver version involved is exactly the same, 2.15.0.

I will try --no-debug as you suggested...

Re: Game is only playable with --flush-stdout option?

Posted: Thu Apr 12, 2012 3:12 pm
by Lord Estraven
--no-debug does not help at all on the Slackware derivatives. Will try on *buntu.

Re: Game is only playable with --flush-stdout option? [No.]

Posted: Thu Apr 12, 2012 3:34 pm
by Lord Estraven
Okay, I am officially an idiot. --no-debug works fine on *buntu because, like --flush-stdout, it has no effect...

This is some kind of distro bug. Possibly in the kernel, possibly elsewhere, I really have no idea - all I know is that the huge memory allocations happen on Slackware and don't happen on *buntu, even though the Intel driver is the same version.

Maybe *buntu patches something that Slackware doesn't. Again, no idea.

*sigh* Sorry for wasting your time.

Re: Game is only playable with --flush-stdout option? [No.]

Posted: Fri Apr 13, 2012 8:27 pm
by yufra
At least you can finally play the game. I felt bad that you were having such issues with it. :-/

Re: Game is only playable with --flush-stdout option? [No.]

Posted: Sat Apr 14, 2012 12:31 am
by Lord Estraven
:lol:

Unfortunately *buntu's grotesque lack of stability keeps me from using it as a main OS. Maybe I'll upgrade the kernel on Slack and see how that works, dunno.

Anyway I shouldn't be playing T4 too much, it might eat up too much of my time for important things (like eating, sleeping, and learning useful programming stuff). Have to commend DG for creating an interesting and addictive game though. Even if the OpenGL interface leaves something to be desired.

P.S. Is it just me or are worm masses *brutal* in this game?

Re: Game is only playable with --flush-stdout option? [No.]

Posted: Sat Apr 14, 2012 1:33 am
by PureQuestion
Lord Estraven wrote:P.S. Is it just me or are worm masses *brutal* in this game?
I think Brittle Clear Oozes are the really bad multipliers. I've had entire maps just get completely clogged with the bastards.

Re: Game is only playable with --flush-stdout option? [No.]

Posted: Sat Apr 14, 2012 1:38 am
by Lord Estraven
Upgraded the kernel on Slack to Liquorix 3.3.0 -> ToME4 plays fine, albeit a tad sluggish (no duh I have an Intel GPU). This is definitely some kind of kernel bug. Go figure.