From cf2b5d030c43dc90d0c8b96916d5c2d05deb873b Mon Sep 17 00:00:00 2001 From: "konstantin.matveyev" Date: Sun, 17 Sep 2017 18:48:32 +0300 Subject: [PATCH] tellg call removed from StreamOperator's checkStream function, because reading of files (readNodeFile etc.) with tellg on 'every iter' is approximately 100 times slower on Emscripten platform --- src/osgDB/StreamOperator.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/osgDB/StreamOperator.cpp b/src/osgDB/StreamOperator.cpp index a1ee9a749..d46eef4e9 100644 --- a/src/osgDB/StreamOperator.cpp +++ b/src/osgDB/StreamOperator.cpp @@ -16,21 +16,14 @@ using namespace osgDB; -static long long prev_tellg = 0; - void InputIterator::checkStream() const { if (_in->rdstate()&_in->failbit) { OSG_NOTICE<<"InputIterator::checkStream() : _in->rdstate() "<<_in->rdstate()<<", "<<_in->failbit<tellg() = "<<_in->tellg()<