@@ -833,21 +833,13 @@ void NextRendererApplication<Renderer>::Report(int fps, const std::string& scene
833833 }
834834
835835 // save to file with scenename
836- /*
837- std::string filename = sceneName + ".png";
838- stbi_write_png(filename.c_str(), extent.width, extent.height, kCompCnt, (const void *) data, extent.width * kCompCnt);
839- */
840836 std::string filename = sceneName + " .jpg" ;
841837 stbi_write_jpg (filename.c_str (), extent.width , extent.height , kCompCnt , (const void *)data, 91 );
842-
843838 fmt::print (" screenshot saved to {}\n " , filename);
844-
845839 std::uintmax_t img_file_size = std::filesystem::file_size (filename);
846840 fmt::print (" file size: {}\n " , Utilities::metricFormatter (static_cast <double >(img_file_size), " b" , 1024 ));
847-
848841 // send to server
849842 // img_encoded = base64_encode(data, img_file_size, false);
850-
851843 free (data);
852844#endif
853845 }
@@ -860,6 +852,7 @@ void NextRendererApplication<Renderer>::Report(int fps, const std::string& scene
860852 {" gpu" , std::string (deviceProp1.deviceName )},
861853 {" driver" , versionToString (deviceProp1.driverVersion )},
862854 {" fps" , fps},
855+ {" version" , NextRenderer::GetBuildVersion ()},
863856 {" screenshot" , img_encoded}
864857 };
865858 std::string json_str = my_json.dump ();
0 commit comments