Skip to content

Instantly share code, notes, and snippets.

@jpleau
Created May 12, 2018 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpleau/a5356e2529d4b93444cc4b5c30513272 to your computer and use it in GitHub Desktop.
Save jpleau/a5356e2529d4b93444cc4b5c30513272 to your computer and use it in GitHub Desktop.
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -179,11 +179,11 @@
refresh_rate = stage_cogl->refresh_rate;
if (refresh_rate == 0.0)
- refresh_rate = 60.0;
+ refresh_rate = 144.0;
refresh_interval = (gint64) (0.5 + 1000000 / refresh_rate);
if (refresh_interval == 0)
- refresh_interval = 16667; /* 1/60th second */
+ refresh_interval = 6945;
stage_cogl->update_time = stage_cogl->last_presentation_time + 1000 * sync_delay;
--- a/clutter/clutter/clutter-pan-action.c
+++ b/clutter/clutter/clutter-pan-action.c
@@ -69,7 +69,7 @@
#define FLOAT_EPSILON (1e-15)
static const gfloat min_velocity = 0.1f; // measured in px/ms
-static const gfloat reference_fps = 60.0f; // the fps assumed for the deceleration rate
+static const gfloat reference_fps = 144.0f; // the fps assumed for the deceleration rate
static const gfloat default_deceleration_rate = 0.95f;
static const gfloat default_acceleration_factor = 1.0f;z
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -99,7 +99,7 @@
static gboolean clutter_enable_accessibility = TRUE;
static gboolean clutter_sync_to_vblank = TRUE;
-static guint clutter_default_fps = 60;
+static guint clutter_default_fps = 144;
static ClutterTextDirection clutter_text_direction = CLUTTER_TEXT_DIRECTION_LTR;
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -969,7 +969,7 @@
}
else
{
- refresh_rate = 60.0f;
+ refresh_rate = 144.0f;
}
current_time =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment