projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vicon jittering, opengl no draw_refresh if no ovly for last frame
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
vicon.C
diff --git
a/cinelerra-5.1/guicast/vicon.C
b/cinelerra-5.1/guicast/vicon.C
index b7fd0f6c70bd0dd8ce4e8d06b7fadd4b05cf83f7..8ae7a7c0ba667a10ad2978113b1b6fc52bde14db 100644
(file)
--- a/
cinelerra-5.1/guicast/vicon.C
+++ b/
cinelerra-5.1/guicast/vicon.C
@@
-105,6
+105,7
@@
VIconThread(BC_WindowBase *wdw, int vw, int vh)
this->refresh_rate = VICON_RATE;
done = 0;
interrupted = -1;
this->refresh_rate = VICON_RATE;
done = 0;
interrupted = -1;
+ stop_age = 0;
}
VIconThread::
}
VIconThread::
@@
-130,6
+131,8
@@
start_drawing()
wdw->set_active_subwindow(view_win);
if( interrupted < 0 )
draw_lock->unlock();
wdw->set_active_subwindow(view_win);
if( interrupted < 0 )
draw_lock->unlock();
+ timer->update();
+ timer->subtract(-stop_age);
interrupted = 0;
wdw->unlock_window();
}
interrupted = 0;
wdw->unlock_window();
}
@@
-141,6
+144,7
@@
stop_drawing()
set_view_popup(0);
if( !interrupted )
interrupted = 1;
set_view_popup(0);
if( !interrupted )
interrupted = 1;
+ stop_age = timer->get_difference();
wdw->unlock_window();
}
wdw->unlock_window();
}
@@
-292,7
+296,10
@@
draw(VIcon *vicon)
void VIconThread::hide_vicons(int v)
{
void VIconThread::hide_vicons(int v)
{
- for( int i=0; i<t_heap.size(); ++i ) t_heap[i]->hidden = v;
+ for( int i=0; i<t_heap.size(); ++i ) {
+ t_heap[i]->hidden = v;
+ t_heap[i]->age = 0;
+ }
}
void VIconThread::
}
void VIconThread::