Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
25e88a11
Commit
25e88a11
authored
Oct 28, 2014
by
Lingzhu Xiang
Browse files
Penalize large render jobs during zooming
All but the last jobs during zooming are aborted, so let smaller jobs go faster.
parent
757f3d82
Changes
1
Hide whitespace changes
Inline
Side-by-side
page-widget.c
View file @
25e88a11
...
...
@@ -458,7 +458,10 @@ zathura_page_widget_draw(GtkWidget* widget, cairo_t* cairo)
cairo_set_operator
(
cairo
,
CAIRO_OPERATOR_SOURCE
);
cairo_paint
(
cairo
);
cairo_restore
(
cairo
);
zathura_render_request
(
priv
->
render_request
,
g_get_real_time
());
/* All but the last jobs requested here are aborted during zooming.
* Processing and aborting smaller jobs first improves responsiveness. */
const
gint64
penalty
=
pwidth
*
pheight
;
zathura_render_request
(
priv
->
render_request
,
g_get_real_time
()
+
penalty
);
return
FALSE
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment