Page 1 of 1

[Linux][i915] Shutdown takes 18s

Posted: Sun Feb 24, 2013 9:21 pm
by MF-
Minor thing - game shutdown takes too long (~18s).
That's it.
Is it normal, or me-specific?

Re: [Linux] Shutdown takes 18s

Posted: Mon Feb 25, 2013 2:55 pm
by Narc
It's not just you. Clocked my testbed at 14 seconds from hitting the Quit button to the window actually closing -- note I hadn't done anything other than starting the game.

Waiting for a timeout, maybe? Or just deallocating stuff? Either way, for responsiveness, the window should probably be closed as early as possible, even if the process hangs around a bit after that.

Re: [Linux] Shutdown takes 18s

Posted: Mon Feb 25, 2013 8:57 pm
by MF-
Out of curiosity I looked at it's strace.
The entire delay is caused by one ioctl on the FD 6 (/dev/dri/card0)

Fun part:
The first argument of the ioctl matches the first argument of the last ioctl before the crash/stall on startup.
But that ioctl actually returns and the stall occurs after that.

Re: [Linux] Shutdown takes 18s

Posted: Mon Feb 25, 2013 11:44 pm
by MF-
UPDATE:
If I disable DRI access, the shutdown is almost instant.
I guess it's an libgl-v.s.-i915 problem

Game loading is slower, but does not stall in the middle (thus overall faster)

Gameplay framerate is greatly impaired by software rendering (~5 FPS) of course.

Re: [Linux][i915] Shutdown takes 18s

Posted: Sun Apr 21, 2013 7:42 am
by MF-
UPDATE:
A new libGl driver has arrived though the updates yesterday, bringing 50MB of extra code. [ubuntu 13.04-dev]
I saw some hints that LLVM is now supported (something about translating requested operations into GPU-supported operations)

Both the startup and shutdown stalls are gone! :) Hooray! (however, the sigbus crash is not)

Re: [Linux][i915] Shutdown takes 18s

Posted: Sun Apr 21, 2013 10:52 pm
by MF-
Wrong.. After a very long game session (whole day, but interleaved with gaps and VT switches) it didn't shutdown in what I think was at least 5 minutes.
(I got impatient and killed it)

Re: [Linux][i915] Shutdown takes 18s

Posted: Sat Jun 08, 2013 7:52 am
by MF-
This should be probably moved out of unresolved bugs section (resolved in libllvm3.2)
I expect the freeze from the post above to be completely unrelated.