mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-14 23:50:24 -06:00
Feature/cef speedup (#806)
* Improve cmake errors * Calling doMessageLoopWork more often to increase gui performance * Introduce frequent callbacks * Restructure browser update callbacks * Cleanup cef speedup * Add flag to toggle updating browser between renderable calls * CEF should not be used in single process mode * Update CEF version * Postbuild step for finding framework from web helper * Load libcef dynamically to fix issue with CEF update * Only include dynamic library loader on mac * Improve keyboard mapping support on MacOS * Add arrow keys * Rename manifest * Fix bug with missing blinking cursor in text fields * Bump minimum cmake version * CEF fixes: Runtime and correct helper path * Be true to actual sandbox compatibility specified by CEF * Cleanup
This commit is contained in:
committed by
Alexander Bock
parent
ba1aaa1672
commit
0dcf65ce4f
@@ -96,4 +96,10 @@ std::vector<std::function<bool(double, double)>>& gMouseScrollWheel() {
|
||||
return g;
|
||||
}
|
||||
|
||||
} // namespace openspace::global::detail
|
||||
|
||||
namespace openspace::global::callback {
|
||||
|
||||
void(*webBrowserPerformanceHotfix)() = nullptr;
|
||||
|
||||
} // namespace openspace::global::callback
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <openspace/scene/scene.h>
|
||||
|
||||
#include <openspace/engine/globals.h>
|
||||
#include <openspace/engine/globalscallbacks.h>
|
||||
#include <openspace/engine/windowdelegate.h>
|
||||
#include <openspace/query/query.h>
|
||||
#include <openspace/rendering/renderengine.h>
|
||||
@@ -33,7 +34,6 @@
|
||||
#include <openspace/scene/sceneinitializer.h>
|
||||
#include <openspace/scripting/lualibrary.h>
|
||||
#include <openspace/util/camera.h>
|
||||
|
||||
#include <ghoul/opengl/programobject.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
|
||||
@@ -313,6 +313,9 @@ void Scene::render(const RenderData& data, RendererTasks& tasks) {
|
||||
catch (const ghoul::RuntimeError& e) {
|
||||
LERRORC(e.component, e.what());
|
||||
}
|
||||
if (global::callback::webBrowserPerformanceHotfix) {
|
||||
(*global::callback::webBrowserPerformanceHotfix)();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user