remove temp code

This commit is contained in:
Atlante45 2017-04-21 17:30:59 -07:00
parent 8269e01474
commit 194541b2d0

View file

@ -31,7 +31,7 @@
const float METERS_TO_INCHES = 39.3701f;
static uint32_t _currentWebCount { 0 };
// Don't allow more than 100 concurrent web views
static const uint32_t MAX_CONCURRENT_WEB_VIEWS = 0;
static const uint32_t MAX_CONCURRENT_WEB_VIEWS = 20;
// If a web-view hasn't been rendered for 30 seconds, de-allocate the framebuffer
static uint64_t MAX_NO_RENDER_INTERVAL = 30 * USECS_PER_SECOND;
@ -71,7 +71,7 @@ RenderableWebEntityItem::~RenderableWebEntityItem() {
bool RenderableWebEntityItem::buildWebSurface(QSharedPointer<EntityTreeRenderer> renderer) {
if (_currentWebCount >= MAX_CONCURRENT_WEB_VIEWS) {
//qWarning() << "Too many concurrent web views to create new view";
qWarning() << "Too many concurrent web views to create new view";
return false;
}
QString javaScriptToInject;