mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 15:02:01 -04:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user