From d16a26aa83ac2a55a1d30d608d8a81c12d1b8694 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Mon, 30 Aug 2021 11:46:16 +0200 Subject: [PATCH 1/2] Enable DTX1 and 3 on RW GL (where applicable) DTX1 and DTX3 is supported by Linux drivers for long time and it can be enable at least where is the hardware support available. - improves first time loading - save about 183 MB on storage - saves GPU memory (not measured) - brings slightly performance boost (1-2 fps on Intel HD 620) --- src/rw/TexRead.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rw/TexRead.cpp b/src/rw/TexRead.cpp index 1f96180b..13c200a1 100644 --- a/src/rw/TexRead.cpp +++ b/src/rw/TexRead.cpp @@ -294,7 +294,7 @@ CanVideoCardDoDXT(void) #ifdef LIBRW // TODO #ifdef RW_OPENGL - return false; + return rw::gl3::gl3Caps.dxtSupported; #else return true; #endif From 75eecf700b1df8e15060f46fe1bab6e81b38cebb Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Mon, 30 Aug 2021 11:57:21 +0200 Subject: [PATCH 2/2] Readme - lto must be used with --no-git-hash Otherwise build fails later. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9855f7af..68f03a2b 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ Microsoft recently discontinued its downloads of the DX9 SDK. You can download a **If you choose OpenAL on Windows** You must read [Running OpenAL build on Windows](https://github.com/GTAmodding/re3/wiki/Running-OpenAL-build-on-Windows). -> :information_source: premake has an `--with-lto` option if you want the project to be compiled with Link Time Optimization. +> :information_source: premake has an `--with-lto` option if you want the project to be compiled with Link Time Optimization (has to be used with `--no-git-hash`) > :information_source: There are various settings in [config.h](https://github.com/GTAmodding/re3/tree/miami/src/core/config.h), you may want to take a look there.