diff --git a/common/rfb/benchmark.cxx b/common/rfb/benchmark.cxx index 4218d91..0812f7e 100644 --- a/common/rfb/benchmark.cxx +++ b/common/rfb/benchmark.cxx @@ -358,12 +358,12 @@ void benchmark(std::string_view path, const std::string_view results_file) { frame_feeder.open(path); static const rfb::PixelFormat pf{32, 24, false, true, 0xFF, 0xFF, 0xFF, 0, 8, 16}; - const std::vector encodings{ + std::vector encodings{ std::begin(benchmarking::default_encodings), std::end(benchmarking::default_encodings) }; - // if (rfb::Server::WebPEnabled) - // encodings.push_back(rfb::pseudoEncodingWEBP); + if (rfb::Server::webpEncodingTime != 30) + encodings.push_back(rfb::pseudoEncodingWEBP); constexpr auto runs = 20; std::vector totals(runs, 0);