[graphics] partial tfrag implementation (#958)

* temp

* some decomp

* tfrag dma setup

* fix negative label bug

* tfrag dma setup

* tfrag, with pipeline tricks

* kinda works

* cleanup before trying some color stuff

* time of day works

* clean up

* temp before render changes

* a few more fixes

* fix up tests

* clean up

* fix

* fix alignment

* one more cleanup
This commit is contained in:
water111
2021-11-13 20:44:17 -05:00
committed by GitHub
parent ff50cf2552
commit 3afd99a8e3
85 changed files with 7793 additions and 1675 deletions
+3 -1
View File
@@ -584,6 +584,7 @@ std::string ObjectFileDB::process_tpages() {
std::string tpage_string = "tpage-";
int total = 0, success = 0;
int tpage_dir_count = 0;
u64 total_px = 0;
Timer timer;
std::string result;
@@ -592,6 +593,7 @@ std::string ObjectFileDB::process_tpages() {
auto statistics = process_tpage(data);
total += statistics.total_textures;
success += statistics.successful_textures;
total_px += statistics.num_px;
} else if (data.name_in_dgo == "dir-tpages") {
result = process_dir_tpages(data).to_source();
tpage_dir_count++;
@@ -605,7 +607,7 @@ std::string ObjectFileDB::process_tpages() {
return {};
}
lg::info("Processed {} / {} textures {:.2f}% in {:.2f} ms", success, total,
lg::info("Processed {} / {} textures ({} px) {:.2f}% in {:.2f} ms", success, total, total_px,
100.f * float(success) / float(total), timer.getMs());
return result;
}