mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-22 22:03:42 +00:00
Try to send a single string that encompasses a stat to the stream so that when we do synchronization it will crunch the entire string at once.
This commit is contained in:
parent
43bd44b6ca
commit
f1924bd221
1 changed files with 8 additions and 2 deletions
|
@ -98,6 +98,8 @@
|
|||
#include <cfloat>
|
||||
#include <ctime>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
// #define USE_PCA_FOR_SHAPE_ESTIMATION
|
||||
|
||||
|
@ -1555,7 +1557,9 @@ namespace BC7C {
|
|||
|
||||
template<typename T>
|
||||
std::ostream &operator<<(const BlockLogger &bl, const T &v) {
|
||||
return bl.m_Stream << bl.m_BlockIdx << ": " << v;
|
||||
std::stringstream ss;
|
||||
ss << bl.m_BlockIdx << ": " << v;
|
||||
return bl.m_Stream << ss.str();
|
||||
}
|
||||
|
||||
// Function prototypes
|
||||
|
@ -2223,7 +2227,9 @@ namespace BC7C {
|
|||
|
||||
template<typename T>
|
||||
static void PrintStat(const BlockLogger &lgr, const char *stat, const T &v) {
|
||||
lgr << stat << " -- " << v << std::endl;
|
||||
std::stringstream ss;
|
||||
ss << stat << " -- " << v << std::endl;
|
||||
lgr << ss.str();
|
||||
}
|
||||
|
||||
// Compress a single block but collect statistics as well...
|
||||
|
|
Loading…
Reference in a new issue