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

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

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

#1 Post 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?
Last edited by Lord Estraven on Thu Apr 12, 2012 3:29 pm, edited 1 time in total.

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

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

#2 Post by darkgod »

Really ? now that's quite interresting ... Thanks!
[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 ;)

Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

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

#3 Post by Lord Estraven »

You're welcome. :D

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

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

#4 Post by darkgod »

Can you try with --no-debug instead ?
[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 ;)

Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

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

#5 Post 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...

Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

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

#6 Post by Lord Estraven »

--no-debug does not help at all on the Slackware derivatives. Will try on *buntu.

Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

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

#7 Post 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.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

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

#8 Post by yufra »

At least you can finally play the game. I felt bad that you were having such issues with it. :-/
<DarkGod> lets say it's intended

Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

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

#9 Post 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?

PureQuestion
Master Artificer
Posts: 726
Joined: Fri Feb 03, 2012 3:53 am

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

#10 Post 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.

Lord Estraven
Uruivellas
Posts: 718
Joined: Tue Dec 13, 2005 12:35 am

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

#11 Post 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.

Post Reply