diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-09-28 10:26:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-09-28 10:26:01 -0400 |
commit | 72d043d51f0d00366d5c170610ca5d60aae78c68 (patch) | |
tree | 4f862a4ca139831105142f343fb7ce08d1fe8548 | |
parent | 767966933da11b626b9d53510b30179c9b1a41f6 (diff) | |
download | gtk+-72d043d51f0d00366d5c170610ca5d60aae78c68.tar.gz |
gsk: Change the profiler setup
Move away from the idea of intra-frame sampling, since we only
push samples once per frame, anyway. Instead, make the profiler
keep a rolling average of the last n frames.
-rw-r--r-- | gsk/gskrenderer.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gsk/gskrenderer.c b/gsk/gskrenderer.c index 3e45766d6c..6bcccf73b2 100644 --- a/gsk/gskrenderer.c +++ b/gsk/gskrenderer.c @@ -657,10 +657,6 @@ gsk_renderer_render_texture (GskRenderer *renderer, viewport = &real_viewport; } -#ifdef G_ENABLE_DEBUG - gsk_profiler_reset (priv->profiler); -#endif - texture = GSK_RENDERER_GET_CLASS (renderer)->render_texture (renderer, root, viewport); #ifdef G_ENABLE_DEBUG @@ -715,10 +711,6 @@ gsk_renderer_render (GskRenderer *renderer, priv->root_node = gsk_render_node_ref (root); -#ifdef G_ENABLE_DEBUG - gsk_profiler_reset (priv->profiler); -#endif - GSK_RENDERER_GET_CLASS (renderer)->render (renderer, root); #ifdef G_ENABLE_DEBUG |