Feature/cleanup (#1608)

* Revert screenlog back to showing Info and above messages
 * Various code cleanup
This commit is contained in:
Alexander Bock
2021-05-25 14:08:33 +02:00
committed by GitHub
parent 53d0b49f6b
commit c3ba532bdb
183 changed files with 4267 additions and 6072 deletions
+10 -14
View File
@@ -141,8 +141,7 @@ void WebBrowserModule::internalInitialize(const ghoul::Dictionary& dictionary) {
}
const bool isMaster = global::windowDelegate->isMaster();
if (!_enabled || (!isMaster) ) {
if (!_enabled || (!isMaster)) {
return;
}
@@ -189,7 +188,7 @@ void WebBrowserModule::removeBrowser(BrowserInstance* browser) {
_browsers.erase(p);
}
else {
LWARNING("Could not find browser in list of browsers.");
LWARNING("Could not find browser in list of browsers");
}
if (_browsers.empty()) {
@@ -215,17 +214,14 @@ bool WebBrowserModule::isEnabled() const {
return _enabled;
}
/**
* Logic for the webbrowser performance hotfix,
* described in more detail in globalscallbacks.h.
*/
/// Logic for the webbrowser performance hotfix, described in globalscallbacks.h
namespace webbrowser {
/**
* The time interval to describe how often the CEF message loop needs to
* be pumped to work properly. A value of 10000 us updates CEF a 100 times
* per second which is enough for fluid interaction without wasting resources
*/
/**
* The time interval to describe how often the CEF message loop needs to be pumped to work
* properly. A value of 10000 us updates CEF a 100 times per second which is enough for
* fluid interaction without wasting resources
*/
std::chrono::microseconds interval = std::chrono::microseconds(10000);
std::chrono::time_point<std::chrono::high_resolution_clock> latestCall;
CefHost* cefHost = nullptr;
@@ -246,7 +242,7 @@ void update() {
latestCall = timeAfter;
}
}
}
} // namespace webbrowser
} // namespace openspace