git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@59321
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
group "Elm_Config" struct {
value "config_version" int: 65539;
value "engine" string: "software_x11";
group "Elm_Config" struct {
value "config_version" int: 65539;
value "engine" string: "software_x11";
+ value "vsync" uchar: 0;
value "thumbscroll_enable" uchar: 1;
value "thumbscroll_threshold" int: 24;
value "thumbscroll_momentum_threshold" double: 100.0;
value "thumbscroll_enable" uchar: 1;
value "thumbscroll_threshold" int: 24;
value "thumbscroll_momentum_threshold" double: 100.0;
group "Elm_Config" struct {
value "config_version" int: 65539;
value "engine" string: "software_x11";
group "Elm_Config" struct {
value "config_version" int: 65539;
value "engine" string: "software_x11";
+ value "vsync" uchar: 0;
value "thumbscroll_enable" uchar: 1;
value "thumbscroll_threshold" int: 24;
value "thumbscroll_momentum_threshold" double: 100.0;
value "thumbscroll_enable" uchar: 1;
value "thumbscroll_threshold" int: 24;
value "thumbscroll_momentum_threshold" double: 100.0;
group "Elm_Config" struct {
value "config_version" int: 65539;
value "engine" string: "software_x11";
group "Elm_Config" struct {
value "config_version" int: 65539;
value "engine" string: "software_x11";
+ value "vsync" uchar: 0;
value "thumbscroll_enable" uchar: 0;
value "thumbscroll_threshold" int: 4;
value "thumbscroll_momentum_threshold" double: 100.0;
value "thumbscroll_enable" uchar: 0;
value "thumbscroll_threshold" int: 4;
value "thumbscroll_momentum_threshold" double: 100.0;
#define D _config_edd
ELM_CONFIG_VAL(D, T, config_version, T_INT);
ELM_CONFIG_VAL(D, T, engine, T_STRING);
#define D _config_edd
ELM_CONFIG_VAL(D, T, config_version, T_INT);
ELM_CONFIG_VAL(D, T, engine, T_STRING);
+ ELM_CONFIG_VAL(D, T, vsync, T_UCHAR);
ELM_CONFIG_VAL(D, T, thumbscroll_enable, T_UCHAR);
ELM_CONFIG_VAL(D, T, thumbscroll_threshold, T_INT);
ELM_CONFIG_VAL(D, T, thumbscroll_momentum_threshold, T_DOUBLE);
ELM_CONFIG_VAL(D, T, thumbscroll_enable, T_UCHAR);
ELM_CONFIG_VAL(D, T, thumbscroll_threshold, T_INT);
ELM_CONFIG_VAL(D, T, thumbscroll_momentum_threshold, T_DOUBLE);
_elm_config = ELM_NEW(Elm_Config);
_elm_config->config_version = ELM_CONFIG_VERSION;
_elm_config->engine = eina_stringshare_add("software_x11");
_elm_config = ELM_NEW(Elm_Config);
_elm_config->config_version = ELM_CONFIG_VERSION;
_elm_config->engine = eina_stringshare_add("software_x11");
+ _elm_config->vsync = 0;
_elm_config->thumbscroll_enable = EINA_TRUE;
_elm_config->thumbscroll_threshold = 24;
_elm_config->thumbscroll_momentum_threshold = 100.0;
_elm_config->thumbscroll_enable = EINA_TRUE;
_elm_config->thumbscroll_threshold = 24;
_elm_config->thumbscroll_momentum_threshold = 100.0;
else if ((!strncmp(s, "shot:", 5)))
eina_stringshare_replace(&_elm_config->engine, s);
}
else if ((!strncmp(s, "shot:", 5)))
eina_stringshare_replace(&_elm_config->engine, s);
}
+
+ s = getenv("ELM_VSYNC");
+ if (s) _elm_config->vsync = !!atoi(s);
s = getenv("ELM_THUMBSCROLL_ENABLE");
if (s) _elm_config->thumbscroll_enable = !!atoi(s);
s = getenv("ELM_THUMBSCROLL_ENABLE");
if (s) _elm_config->thumbscroll_enable = !!atoi(s);
{
int config_version;
const char *engine;
{
int config_version;
const char *engine;
unsigned char thumbscroll_enable;
int thumbscroll_threshold;
double thumbscroll_momentum_threshold;
unsigned char thumbscroll_enable;
int thumbscroll_threshold;
double thumbscroll_momentum_threshold;
*/
else if (ENGINE_COMPARE(ELM_OPENGL_X11))
{
*/
else if (ENGINE_COMPARE(ELM_OPENGL_X11))
{
- win->ee = ecore_evas_gl_x11_new(NULL, 0, 0, 0, 1, 1);
+ int opt[10];
+ int opt_i = 0;
+
+ if (_elm_config->vsync)
+ {
+ opt[opt_i] = ECORE_EVAS_GL_X11_OPT_VSYNC;
+ opt_i++;
+ opt[opt_i] = 1;
+ opt_i++;
+ }
+ if (opt_i > 0)
+ win->ee = ecore_evas_gl_x11_options_new(NULL, 0, 0, 0, 1, 1, opt);
+ else
+ win->ee = ecore_evas_gl_x11_new(NULL, 0, 0, 0, 1, 1);
FALLBACK_TRY("OpenGL");
#ifdef HAVE_ELEMENTARY_X
win->client_message_handler = ecore_event_handler_add
FALLBACK_TRY("OpenGL");
#ifdef HAVE_ELEMENTARY_X
win->client_message_handler = ecore_event_handler_add