diff options
-rw-r--r-- | render-test/metadata.hpp | 6 | ||||
-rw-r--r-- | render-test/runner.cpp | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/render-test/metadata.hpp b/render-test/metadata.hpp index 567c89e3fc..2b007a445c 100644 --- a/render-test/metadata.hpp +++ b/render-test/metadata.hpp @@ -100,14 +100,14 @@ struct GfxProbe { GfxProbe() = default; GfxProbe(const mbgl::gfx::RenderingStats&, const GfxProbe&); - int numDrawCalls; - int numTextures; int numBuffers; + int numDrawCalls; int numFrameBuffers; + int numTextures; - Memory memTextures; Memory memIndexBuffers; Memory memVertexBuffers; + Memory memTextures; }; class TestMetrics { diff --git a/render-test/runner.cpp b/render-test/runner.cpp index 8a4b0b3b0e..de89da6696 100644 --- a/render-test/runner.cpp +++ b/render-test/runner.cpp @@ -1035,6 +1035,8 @@ bool TestRunner::runOperations(const std::string& key, TestMetadata& metadata, R map.flyTo(mbgl::CameraOptions().withCenter(endPos).withZoom(endZoom), animationOptions); +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wfor-loop-analysis" for (; !transitionFinished; frames++) { frontend.renderOnce(map); float frameTime = (float)frontend.getFrameTime(); @@ -1042,7 +1044,7 @@ bool TestRunner::runOperations(const std::string& key, TestMetadata& metadata, R samples.push_back(frameTime); } - +#pragma clang diagnostic pop float averageFps = totalTime > 0.0 ? frames / totalTime : 0.0; float minFrameTime = 0.0; |