mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-17 22:08:05 +02:00
slowly clening up
This commit is contained in:
parent
c231463fca
commit
f9bd6f5d03
3 changed files with 5 additions and 3 deletions
|
@ -2536,7 +2536,7 @@ Application::~Application() {
|
|||
// Can't log to file passed this point, FileLogger about to be deleted
|
||||
qInstallMessageHandler(LogHandler::verboseMessageHandler);
|
||||
|
||||
_renderEventHandler->deleteLater();
|
||||
// _renderEventHandler->deleteLater();
|
||||
}
|
||||
|
||||
void Application::initializeGL() {
|
||||
|
@ -4178,7 +4178,7 @@ bool Application::shouldPaint() const {
|
|||
|
||||
// Throttle if requested
|
||||
//if (displayPlugin->isThrottled() && (_graphicsEngine._renderEventHandler->_lastTimeRendered.elapsed() < THROTTLED_SIM_FRAME_PERIOD_MS)) {
|
||||
if (displayPlugin->isThrottled() && _graphicsEngine.shouldPaint()) {
|
||||
if (displayPlugin->isThrottled() && !_graphicsEngine.shouldPaint()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -102,6 +102,8 @@ void GraphicsEngine::shutdown() {
|
|||
// shutdown render engine
|
||||
_renderScene = nullptr;
|
||||
_renderEngine = nullptr;
|
||||
|
||||
_renderEventHandler->deleteLater();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
bool checkPendingRenderEvent();
|
||||
|
||||
private:
|
||||
// THread specific calls
|
||||
// Thread specific calls
|
||||
void render_runRenderFrame(RenderArgs* renderArgs);
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in a new issue