From 3c4dd7bcc9094d40577a859142b1c1d139f5ef39 Mon Sep 17 00:00:00 2001 From: vypxl Date: Sun, 30 Jan 2022 18:22:15 +0100 Subject: [PATCH] Remove big data sizes on web --- include/viz.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/viz.hpp b/include/viz.hpp index 249b755..7ada144 100644 --- a/include/viz.hpp +++ b/include/viz.hpp @@ -48,9 +48,13 @@ class Viz { /* Set new style display name here */ }; - +#ifdef __EMSCRIPTEN__ + static const int dataSizesCount = 6; + const int dataSizes[dataSizesCount] { 16, 256, 1000, 5000, 50000, 500000 }; +#else static const int dataSizesCount = 7; const int dataSizes[dataSizesCount] { 16, 256, 1000, 5000, 50000, 500000, 1000000 }; +#endif ArrayWrapper *data = nullptr; bool running = false;