diff --git a/data/nyc.webp b/data/nyc.webp new file mode 100644 index 00000000..30ae5ae7 Binary files /dev/null and b/data/nyc.webp differ diff --git a/data/paris.webp b/data/paris.webp new file mode 100644 index 00000000..82a0a70a Binary files /dev/null and b/data/paris.webp differ diff --git a/src/TrafficSimulator-Final.cpp b/src/TrafficSimulator-Final.cpp index 197b0be7..83dacea8 100644 --- a/src/TrafficSimulator-Final.cpp +++ b/src/TrafficSimulator-Final.cpp @@ -12,6 +12,9 @@ void createTrafficObjects_Paris(std::vector> &streets, std::vector> &intersections, std::vector> &vehicles, std::string &filename, int nVehicles) { // assign filename of corresponding city map + // Note: You can use the webp format instead of jpeg + // According to Google - WebP lossless images are 26% smaller in size compared to PNGs. + // WebP lossy images are 25-34% smaller than comparable JPEG images at equivalent SSIM quality index. filename = "../data/paris.jpg"; // init traffic objects @@ -54,6 +57,7 @@ void createTrafficObjects_Paris(std::vector> &streets, s void createTrafficObjects_NYC(std::vector> &streets, std::vector> &intersections, std::vector> &vehicles, std::string &filename, int nVehicles) { // assign filename of corresponding city map + // Note: You can use the webp format instead of jpeg filename = "../data/nyc.jpg"; // init traffic objects