[graphics] reduce the size of fr3 files (#1175)

* first pass

* first pass at shrinking fr3s

* only need to load vertices once

* avx2 detect and switch

* fix build

* another ifx'

* one more

* fix the sky and stupid math bug in size check
This commit is contained in:
water111
2022-02-16 22:13:18 -05:00
committed by GitHub
parent 74d0025974
commit 5135ea9659
20 changed files with 844 additions and 137 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ std::vector<std::shared_ptr<TextureRecord>> TexturePool::convert_textures(const
// the sizes given aren't the actual sizes in memory, so if you just use that, you get the
// wrong answer. I solved this in the decompiler by using the size of the actual data, but we
// don't really have that here.
u32 size = ((sizes[0] + sizes[1] + sizes[2] + 2047) / 256) * 256;
u32 size = ((sizes[0] + sizes[1] + sizes[2] + 4096) / 256) * 256;
m_tex_converter.upload(memory_base + texture_page.segment[0].block_data_ptr,
texture_page.segment[0].dest, size);