forked from enlightenment/efl
ecore vsync - add getenv env var to disable vsync attempt
this is a quick try to allow testing and fixing of the vbox vsync kernel panic with ability to turn it off so debugging can be done
This commit is contained in:
parent
827ca3fcfc
commit
c12875ccd3
|
@ -562,6 +562,14 @@ EAPI Eina_Bool
|
||||||
ecore_x_vsync_animator_tick_source_set(Ecore_X_Window win)
|
ecore_x_vsync_animator_tick_source_set(Ecore_X_Window win)
|
||||||
{
|
{
|
||||||
Ecore_X_Window root;
|
Ecore_X_Window root;
|
||||||
|
static int vsync_veto = -1;
|
||||||
|
|
||||||
|
if (vsync_veto == -1)
|
||||||
|
{
|
||||||
|
if (getenv("ECORE_NO_VSYNC")) vsync_veto = 1;
|
||||||
|
else vsync_veto = 0;
|
||||||
|
}
|
||||||
|
if (vsync_veto == 1) return EINA_FALSE;
|
||||||
|
|
||||||
root = ecore_x_window_root_get(win);
|
root = ecore_x_window_root_get(win);
|
||||||
if (root != vsync_root)
|
if (root != vsync_root)
|
||||||
|
|
Loading…
Reference in New Issue