Bug 89203 - Mesa 10.4.3 and up causes stuttering and frame drops in a particular game
Summary: Mesa 10.4.3 and up causes stuttering and frame drops in a particular game
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: 10.4
Hardware: Other All
: medium minor
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 14:03 UTC by andre35822
Modified: 2015-05-07 03:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (191.88 KB, text/plain)
2015-02-18 14:03 UTC, andre35822
Details
dmesg (81.08 KB, text/plain)
2015-02-18 14:03 UTC, andre35822
Details

Description andre35822 2015-02-18 14:03:41 UTC
Created attachment 113614 [details]
Xorg.0.log

I hope I selected the right component for this bug report as I am unsure. 

Essentially, ever since upgrading past Mesa 10.3 to 10.4.3 or 10.4.4 I get constant stuttering and frame drops in a proprietary game called Minecraft (runs on java 7). The stuttering and frame drops occur whenever I move my character around and new chunks start to load. So that seems to be the issue, low frame rates when things are loading.

This constant stuttering and frame drops did not occur when on 10.3.
Comment 1 andre35822 2015-02-18 14:03:56 UTC
Created attachment 113615 [details]
dmesg
Comment 2 Alex Deucher 2015-02-18 14:29:11 UTC
Can you bisect?
Comment 3 smoki 2015-02-18 14:49:32 UTC
 Try mesa git or 10.5.0-rc1 or up, or just patch older mesa... i am mostly thinking of this patch:

http://cgit.freedesktop.org/mesa/mesa/commit/?id=a338dc01866ce50bf7555ee8dc08491c7f63b585

 Not sure if helps Minecraft exactly, so it is just a guess because i have another games which stutter similar to what you describe before it.
Comment 4 Michel Dänzer 2015-02-19 02:48:17 UTC
Does it work better with the current Mesa Git 10.4 or master branch?
Comment 5 andre35822 2015-02-19 03:22:48 UTC
(In reply to smoki from comment #3)
>  Try mesa git or 10.5.0-rc1 or up, or just patch older mesa... i am mostly
> thinking of this patch:
> 
> http://cgit.freedesktop.org/mesa/mesa/commit/
> ?id=a338dc01866ce50bf7555ee8dc08491c7f63b585
> 
>  Not sure if helps Minecraft exactly, so it is just a guess because i have
> another games which stutter similar to what you describe before it.
I just tried out mesa-git 10.6 (as that was available in the Arch AUR and I wanted something quick to test) and the stuttering/frame drops still occur. Although entering/exiting fullscreen on 10.6 don't seem to be as buggy as before in Minecraft. I will try 10.3. and see
Comment 6 andre35822 2015-02-19 03:24:54 UTC
(In reply to Michel Dänzer from comment #4)
> Does it work better with the current Mesa Git 10.4 or master branch?
Uh I am not sure, it runs fine on 10.4 at acceptable framerates, sometimes a bit over 100 but once chunks starts to load (more of the map loads) I get a massive frame drop to 1 or 0 and then while it starts catching back up it just stutters). I just tried 10.6-git from arch AUR and its acts pretty much the same as 10.4
Comment 7 smoki 2015-02-19 06:43:49 UTC
 The best is if you can bisect mesa, if 10.3 worked fine it should be easy :) Or try various settings in game, might be only one which trigger slow case. 
Or if someone other want to reproduce it, apitrace trace will be usefull, etc...

 Otherwise more info is needed, like:

 Which version of Minecraft?
 Java or openjdk used?
 Did you use optifine?

 You might post your options.txt file, because as i said it might only happen with exact settings and also optionsof.txt in case you use optifine, etc...
Comment 8 andre35822 2015-02-19 20:37:10 UTC
(In reply to smoki from comment #7)
>  The best is if you can bisect mesa, if 10.3 worked fine it should be easy
> :) Or try various settings in game, might be only one which trigger slow
> case. 
> Or if someone other want to reproduce it, apitrace trace will be usefull,
> etc...
> 
>  Otherwise more info is needed, like:
> 
>  Which version of Minecraft?
>  Java or openjdk used?
>  Did you use optifine?
> 
>  You might post your options.txt file, because as i said it might only
> happen with exact settings and also optionsof.txt in case you use optifine,
> etc...
Bisect mesa? I found this in the arch linux wiki https://wiki.archlinux.org/index.php/Bisecting_Mesa so what is it really? Its to notify the mesa developers from git? I am not sure lol sorry. I am going to do some more testing, with Mesa 10.3 and Mesa 10.4 and different versions of Minecraft. I am very new to the whole reporting bugs on linux and don't know of these beautiful programs that exist.
Comment 9 andre35822 2015-05-06 21:43:30 UTC
The issue seems to no longer occur on Mesa 10.5.4, I am also on kernel 4.0 (I dont remember if it did not occur on Mesa 10.5.4 with kernel 3.19)

I guess this is solved? I don't know what was done to solve it but the stuttering no longer occurs and FPS has increased by 10-20FPS.
Comment 10 Michel Dänzer 2015-05-07 03:02:31 UTC
Glad to hear it's working better now!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.