Was playing around with Valgrind to track down what I felt was excessive memory usage by the engine, which brought me to learn about on-the-fly texture compression offered by the OpenGL driver. Figured we should use that to reduce system memory usage, with the downside being we will have longer startup time as now the driver has to compress the images on the fly before uploading to the GPU.
Loads/saves compressed textures to disk in Data/cache/textures/*.bin.
Was playing around with Valgrind to track down what I felt was excessive memory usage by the engine, which brought me to learn about on-the-fly texture compression offered by the OpenGL driver. Figured we should use that to reduce system memory usage, with the downside being we will have longer startup time as now the driver has to compress the images on the fly before uploading to the GPU.
Data/cache/textures/*.bin
.Used the corresponding enums from Table 3 in https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexImage2D.xhtml
Screenshots
Before
Compiled with
-g
Compiled without
-g
After
Compiled with
-g
Compiled without
-g