--- rxvt-unicode/src/feature.h 2006/01/31 20:07:18 1.46 +++ rxvt-unicode/src/feature.h 2007/11/19 09:34:46 1.55 @@ -24,13 +24,13 @@ #define FEATURE_H #ifndef X11USRLIBDIR -# define X11USRLIBDIR "/usr/X11R6/lib" +# define X11USRLIBDIR "/usr/lib" #endif #ifndef X11LIBDIR # define X11LIBDIR X11USRLIBDIR "/X11" #endif #ifndef XAPPLOADDIR -# define XAPPLOADDIR X11LIBDIR "/app-defaults" +# define XAPPLOADDIR X11LIBDIR "/app-defaults" # define XAPPLOADDIRLOCALE X11LIBDIR "/%s/app-defaults" #endif @@ -61,6 +61,13 @@ */ /* + * Forcefully disable double-buffering for xft. On some card/driver combination + * enabling it slightly decreases performance, on most it greatly helps it. + * The slowdown is small, so it should normally be enabled. + */ +/* #define FORCE_UNBUFFERED_XFT */ + +/* * The cursor blink interval, in seconds. */ #define CURSOR_BLINK_INTERVAL 0.5 @@ -136,7 +143,7 @@ * Define to remove support for XCopyArea () support. XCopyArea () is useful * for scrolling on non-local X displays */ -#undef NO_SLOW_LINK_SUPPORT +#define NO_SLOW_LINK_SUPPORT /* * Printer pipe which will be used for emulation of attached vt100 printer @@ -147,7 +154,7 @@ * Allow 80/132 mode switching on startup */ /* #define ALLOW_132_MODE */ - + /*---------------------------------KEYS---------------------------------*/ /* @@ -185,7 +192,7 @@ /* * Allow scrolling with modifier+Up/Down keys, in addition * to modifier+Prior/Next? (modifier is controlled with - * SCROLL_ON_* defines above.). + * SCROLL_ON_* defines above.). * Also for modifier+Home/End keys to move to top/bottom */ /* #define SCROLL_ON_UPDOWN_KEYS */ @@ -380,5 +387,20 @@ */ #define VISUAL_BELL_DURATION .020 +/*--------------------------------OTHER---------------------------------*/ + +/* + * Enable the linux yield/usleep hack, which can dramatically improve + * performance by working around the linux kernel tty ratelimit bug. + * Unfortunately, it seems screen is negatively affected by this on some + * machines, so it is disabled by default. Use freebsd or any other kernel + * that doesn't suffer form this bug and it will be fast either way. + * + * See command.C for details. + */ +#if __linux__ +# define LINUX_YIELD_HACK 0 +#endif + #endif