mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 12:10:09 +01:00
This reduces the cache size for Deus Ex from ~160M to ~30M for radeonsi (these numbers differ from Grigori's results below probably due to different graphics quality settings). I'm also seeing the following improvements in minimum fps in the Shadow of Mordor benchmark on an i5-6400 CPU@2.70GHz, with a HDD: no-cache: ~10fps with-cache-no-compression: ~15fps with-cache-and-compression: ~20fps Note: The with cache results are from the second run after closing and opening the game to avoid the in-memory cache. Since we mainly care about decompression I went with Z_BEST_COMPRESSION as suggested on irc by Steinar H. Gunderson who has benchmarked decompression speeds. Grigori Goronzy provided the following stats for Deus Ex: Mankind Divided start-up times on a Athlon X4 860k with a SSD: No Cache 215 sec Cold Cache zlib BEST_COMPRESSION 285 sec Warm Cache zlib BEST_COMPRESSION 33 sec Cold Cache zlib BEST_SPEED 264 sec Warm Cache zlib BEST_SPEED 33 sec Cold Cache no compression 266 sec Warm Cache no compression 34 sec The total cache size for that game is 48 MiB with BEST_COMPRESSION, 56 MiB with BEST_SPEED and 170 MiB with no compression. These numbers suggest that it may be ok to go with Z_BEST_SPEED but we should gather some actual decompression times before doing so. Other options might be to do the compression in a separate thread, this might allow us to use a higher compression algorithim such as LZMA. Reviewed-by: Grigori Goronzy <greg@chown.ath.cx> Acked-by: Marek Olšák <marek.olsak@amd.com>
64 lines
2 KiB
Makefile
64 lines
2 KiB
Makefile
# Copyright © 2014 Intel Corporation
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
# to deal in the Software without restriction, including without limitation
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
# Software is furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice (including the next
|
|
# paragraph) shall be included in all copies or substantial portions of the
|
|
# Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
# IN THE SOFTWARE.
|
|
|
|
SUBDIRS = . tests/hash_table
|
|
|
|
include Makefile.sources
|
|
|
|
noinst_LTLIBRARIES = libmesautil.la
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/include
|
|
|
|
libmesautil_la_CPPFLAGS = \
|
|
$(DEFINES) \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/src \
|
|
-I$(top_srcdir)/src/mapi \
|
|
-I$(top_srcdir)/src/mesa \
|
|
-I$(top_srcdir)/src/gallium/include \
|
|
-I$(top_srcdir)/src/gallium/auxiliary \
|
|
$(VISIBILITY_CFLAGS) \
|
|
$(MSVC2013_COMPAT_CFLAGS) \
|
|
$(ZLIB_CFLAGS)
|
|
|
|
libmesautil_la_SOURCES = \
|
|
$(MESA_UTIL_FILES) \
|
|
$(MESA_UTIL_GENERATED_FILES)
|
|
|
|
libmesautil_la_LIBADD = $(ZLIB_LIBS)
|
|
|
|
roundeven_test_LDADD = -lm
|
|
|
|
check_PROGRAMS = u_atomic_test roundeven_test
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
BUILT_SOURCES = $(MESA_UTIL_GENERATED_FILES)
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
EXTRA_DIST = \
|
|
format_srgb.py \
|
|
SConscript \
|
|
sha1/README
|
|
|
|
PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
|
|
|
|
format_srgb.c: format_srgb.py
|
|
$(PYTHON_GEN) $(srcdir)/format_srgb.py > $@
|