Commit 2fcf45ca authored by David Košenina's avatar David Košenina

3D view fixed

parent 6721afa2
......@@ -288,6 +288,8 @@ void OsciloskopOsciloskop::onActivate(wxActivateEvent& event)
// TODO: Implement onActivate
if(once)
{
pTimer->init(TIMER_MAIN_THREAD);
////////////////////////////////////////////////////////////////////////////////////////
// version
////////////////////////////////////////////////////////////////////////////////////////
......@@ -633,7 +635,7 @@ void OsciloskopOsciloskop::OnIdle(wxIdleEvent& event)
}
pManager->fireEvents();
pTimer->deltaTime(TIMER_MAIN_THREAD);
pOsciloscope->dtUpdate += pTimer->getDelta(TIMER_MAIN_THREAD);
pOsciloscope->dtUpdate = pTimer->getDelta(TIMER_MAIN_THREAD);
pManager->update(pOsciloscope->dtUpdate);
// render
......
......@@ -1792,7 +1792,6 @@ int SDLCALL RenderThreadFunction(void* data)
// timer
//////////////////////////////////////////////////
pTimer->init(TIMER_MAIN);
pTimer->init(TIMER_MAIN_THREAD);
pTimer->init(TIMER_RENDER);
pTimer->init(TIMER_RENDER_THREAD);
while(SDL_AtomicCAS(&pOsciloscope->contextCreated, 0, 1) == SDL_FALSE) {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment