mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Add a special background to use for performance testing
Performance testing was producing inconsistent values at different times in the day since the GNOME default background is animated and sometimes has a single layer, and sometimes two blended layers. So we have consistent numbers, install a simple animated background with GNOME Shell that has 40-year long transition ending in 2030,a and set an environment variable in gnome-shell-perf-tool so that the background is override with that background. (The background depends on files installed by gnome-backgrounds; we assume that the person running performance tests is doing so within the scope of a full GNOME install.) https://bugzilla.gnome.org/show_bug.cgi?id=734610
This commit is contained in:
parent
d450b74e10
commit
20fc9735fa
5 changed files with 67 additions and 13 deletions
31
data/perf-background.xml.in
Normal file
31
data/perf-background.xml.in
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!-- With an animated background, performance will differ depending on whether
|
||||
one layer or two layers are being blended together. This messes up our
|
||||
benchmarks. We could just benchmark a single image, but since blended
|
||||
images are present for much of the day with the GNOME default background,
|
||||
we want to make sure that also performs well; for that reason we ship
|
||||
an "animated" background that animates super-slowly to use during
|
||||
performance tests; it will be in the blended state until 2030. -->
|
||||
<background>
|
||||
<starttime>
|
||||
<year>1990</year>
|
||||
<month>1</month>
|
||||
<day>1</day>
|
||||
<hour>0</hour>
|
||||
<minute>00</minute>
|
||||
<second>00</second>
|
||||
</starttime>
|
||||
|
||||
<!-- One transition that takes 40 years -->
|
||||
<transition type="overlay">
|
||||
<duration>1261440000.0</duration>
|
||||
<from>@datadir@/backgrounds/gnome/adwaita-morning.jpg</from>
|
||||
<to>@datadir@/backgrounds/gnome/adwaita-day.jpg</to>
|
||||
</transition>
|
||||
|
||||
<!-- A single slide doesn't work, so another slide for 1 minute after 40 years -->
|
||||
<static>
|
||||
<duration>60</duration>
|
||||
<file>/usr/share/backgrounds/gnome/Sandstone.jpg</file>
|
||||
</static>
|
||||
|
||||
</background>
|
||||
Loading…
Add table
Add a link
Reference in a new issue