Date: Sat, 10 Apr 2004 17:24:38 -0500 From: Jeremy Messenger <mezz7@cox.net> To: freebsd-gnome@freebsd.org Subject: VTE w/ new patch makes skip frame (feel slow) when type.. Message-ID: <opr59hvcc78ckrg5@smtp.central.cox.net>
next in thread | raw e-mail | index | archive | help
------------w3BM9hZb2i3YSXV0bRakSL Content-Type: text/plain; format=flowed; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, I can type very fast and I hold down key like down or up pretty often for PR. With the new patch of VTE that has been added looks like this: files/patch-src_vte.c: ======================================= [...] -#define VTE_CHILD_INPUT_PRIORITY G_PRIORITY_DEFAULT_IDLE +#define VTE_CHILD_INPUT_PRIORITY G_PRIORITY_LOW [...] -#define VTE_COALESCE_TIMEOUT 2 +#define VTE_COALESCE_TIMEOUT 50 ======================================= This cause the type 'feel like' slow, but itself is faster than before in the benchmark (below). I am not sure what's right word for it but it's almost like game or video frame per sec. However, with this patch; it skips the frame that make it fee like slow. If I remove above patch and it feels much more smoother and faster. So... I decided to try to change from 50 to 25/15 and it works a lot better! Benchmark: ======================================= $ time ls -R /usr/ports With above patch: 13.91 real 0.24 user 1.13 sys hold 'a' key and skip frame like at the every three 'a'; it feels slower. With above patch and 50 -> 25: 13.91 real 0.33 user 1.04 sys hold 'a' key and no skip frame; it feels smoother and faster. With above patch and 50 -> 15: 14.08 real 0.28 user 1.08 sys hold 'a' key and no skip frame; it feels smoother and faster. Without above patch: 21.89 real 0.28 user 1.12 sys hold 'a' key and no skip frame; it feels smoother and faster. ======================================= So far, I think 15 is the better number to use because it feels more smoother and faster. Also, that include in the real benchmark is still fast. Can anyone test the default one from offical ports tree then try this patch (vte.diff) in attach? Off point, I played with the benchmark: ======================================= $ time ls -R /usr/ports aterm: 3.40 real 0.47 user 1.23 sys xterm: 6.47 real 0.34 user 1.38 sys gnome: 13.91 real 0.33 user 1.04 sys ======================================= Cheers, Mezz -- bsdforums.org 's moderator, mezz. ------------w3BM9hZb2i3YSXV0bRakSL Content-Disposition: attachment; filename=vte.diff Content-Type: text/plain; name=vte.diff Content-Transfer-Encoding: 8bit diff -ur vte.orig/files/patch-src_vte.c vte/files/patch-src_vte.c --- vte.orig/files/patch-src_vte.c Thu Apr 8 13:36:39 2004 +++ vte/files/patch-src_vte.c Sat Apr 10 17:20:31 2004 @@ -14,7 +14,7 @@ #define VTE_INVALID_SOURCE -1 #define VTE_INVALID_BYTE '?' -#define VTE_COALESCE_TIMEOUT 2 -+#define VTE_COALESCE_TIMEOUT 50 ++#define VTE_COALESCE_TIMEOUT 15 /* The structure we use to hold characters we're supposed to display -- this * includes any supported visible attributes. */ ------------w3BM9hZb2i3YSXV0bRakSL--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?opr59hvcc78ckrg5>