forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
767966933d
commit
72d043d51f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user