mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 17:30:04 -05:00
Feature/cleanup (#1608)
* Revert screenlog back to showing Info and above messages * Various code cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user