KASM-6984 Add WebP for benchmarking when value is not default

This commit is contained in:
El 2025-05-01 16:56:57 +05:00
parent 415607ea42
commit df650b7d0c
No known key found for this signature in database
GPG Key ID: EB3F4C9EA29CDE59

View File

@ -358,12 +358,12 @@ void benchmark(std::string_view path, const std::string_view results_file) {
frame_feeder.open(path); frame_feeder.open(path);
static const rfb::PixelFormat pf{32, 24, false, true, 0xFF, 0xFF, 0xFF, 0, 8, 16}; static const rfb::PixelFormat pf{32, 24, false, true, 0xFF, 0xFF, 0xFF, 0, 8, 16};
const std::vector<rdr::S32> encodings{ std::vector<rdr::S32> encodings{
std::begin(benchmarking::default_encodings), std::end(benchmarking::default_encodings) std::begin(benchmarking::default_encodings), std::end(benchmarking::default_encodings)
}; };
// if (rfb::Server::WebPEnabled) if (rfb::Server::webpEncodingTime != 30)
// encodings.push_back(rfb::pseudoEncodingWEBP); encodings.push_back(rfb::pseudoEncodingWEBP);
constexpr auto runs = 20; constexpr auto runs = 20;
std::vector<uint64_t> totals(runs, 0); std::vector<uint64_t> totals(runs, 0);