unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6116: Emacs 23 is sluggish with Consolas font
@ 2010-05-05 20:21 Vegard Øye
  2010-07-17  2:31 ` Christoph
  0 siblings, 1 reply; 13+ messages in thread
From: Vegard Øye @ 2010-05-05 20:21 UTC (permalink / raw)
  To: 6116


I use 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on Windows XP.
My font of choice is Consolas, which was originally released with
Windows Vista, but can be downloaded from the URL below.

Since I moved from 22.3 to 23.1, Emacs has become noticeably slower,
particularly when scrolling. The problems vanish when I select any
other font than Consolas.

WITHOUT CONSOLAS: My .emacs consists of the following two lines.

        (setq scroll-step 1)
        ;; (set-frame-font "Consolas-11")

When I start up Emacs, the font is Courier New. I open the tutorial
with C-h t and hold down C-n until the cursor reaches the bottom of
the screen. When it does, the text scrolls smoothly.

WITH CONSOLAS: I uncomment the second line and start Emacs anew.

        (setq scroll-step 1)
        (set-frame-font "Consolas-11")

Now C-n doesn't scroll at all. Instead, the cursor is repeatedly
recentered each time it reaches the bottom of the screen.

If display-intensive packages like hl-line-mode and show-paren-mode
are loaded as well, Emacs slows to a crawl.

WITH OTHER FONTS: No problems with Lucida Console!

        (setq scroll-step 1)
        (set-frame-font "Lucida Console-11")

This is just as responsive as the default of Courier New.

DOWNLOAD: Consolas is included with Windows Vista and Windows 7.
Otherwise, an .exe installer is available from the address below.
If this is unpractical, mail me and we'll figure out something.

http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3

Vegard 		 	   		  
_________________________________________________________________
Windows 7: Du får hjelp til gjøre mer. Utforsk Windows 7.
http://windows.microsoft.com/windows-7






^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-05-05 20:21 bug#6116: Emacs 23 is sluggish with Consolas font Vegard Øye
@ 2010-07-17  2:31 ` Christoph
  2010-07-18  1:22   ` Óscar Fuentes
  2010-07-18  7:32   ` James Cloos
  0 siblings, 2 replies; 13+ messages in thread
From: Christoph @ 2010-07-17  2:31 UTC (permalink / raw)
  To: 6116

I followed the recipe above and can confirm the same behavior for Emacs
24.0.50 (r100832) on Windows 7.

Maybe the performance difference is due to Consolas being optimized for
ClearType, whereas the regular Courier New is not?

Christoph





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-17  2:31 ` Christoph
@ 2010-07-18  1:22   ` Óscar Fuentes
  2010-07-18  7:32   ` James Cloos
  1 sibling, 0 replies; 13+ messages in thread
From: Óscar Fuentes @ 2010-07-18  1:22 UTC (permalink / raw)
  To: 6116

I cannot reproduce this bug on Windows 7 with

GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2010-07-03





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-17  2:31 ` Christoph
  2010-07-18  1:22   ` Óscar Fuentes
@ 2010-07-18  7:32   ` James Cloos
  2010-07-18 13:17     ` Christoph
  1 sibling, 1 reply; 13+ messages in thread
From: James Cloos @ 2010-07-18  7:32 UTC (permalink / raw)
  To: cschol2112; +Cc: 6116

>>>>> "C" == Christoph  <cschol2112@googlemail.com> writes:

C> I followed the recipe above and can confirm the same behavior for Emacs
C> 24.0.50 (r100832) on Windows 7.

C> Maybe the performance difference is due to Consolas being optimized for
C> ClearType, whereas the regular Courier New is not?

It is more likely to do with each fonts' set of OpenType features.
Consolas almost certainly has significantly better OpenType support
than the much older versions of Courier New MS ships.

Perhaps something involving localized forms?

You also may have some system-level feature enabled, perhaps related to
locale, i18n or the like which resutls in slower itf processing?  (That
or something like that might explain why Óscar was unable to duplicate.)

I only have thought, no solutions, but I've read numerous complaints
elsewhere over the recent years which tracked down to inefficient
implementations of OpenType, and that seems to be the most significant
difference between Courier New and Consolas.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-18  7:32   ` James Cloos
@ 2010-07-18 13:17     ` Christoph
  2010-07-18 14:37       ` Óscar Fuentes
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph @ 2010-07-18 13:17 UTC (permalink / raw)
  To: James Cloos; +Cc: 6116, Óscar Fuentes

On 7/18/2010 1:32 AM, James Cloos wrote:

> It is more likely to do with each fonts' set of OpenType features.
> Consolas almost certainly has significantly better OpenType support
> than the much older versions of Courier New MS ships.

It is Consolas that is more sluggish, not Courier New.

> You also may have some system-level feature enabled, perhaps related to
> locale, i18n or the like which resutls in slower itf processing?  (That
> or something like that might explain why Óscar was unable to duplicate.)

As far as I can tell Óscar and I are using the same system (Windows 7). 
My locale is US. Maybe Óscar can tell us what he is using and whether 
switching to locale US makes it worse?

Christoph





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-18 13:17     ` Christoph
@ 2010-07-18 14:37       ` Óscar Fuentes
  2010-07-18 14:49         ` Christoph
  0 siblings, 1 reply; 13+ messages in thread
From: Óscar Fuentes @ 2010-07-18 14:37 UTC (permalink / raw)
  To: Christoph; +Cc: 6116

Christoph <cschol2112@googlemail.com> writes:

> On 7/18/2010 1:32 AM, James Cloos wrote:
>
>> You also may have some system-level feature enabled, perhaps related to
>> locale, i18n or the like which resutls in slower itf processing?  (That
>> or something like that might explain why Óscar was unable to duplicate.)
>
> As far as I can tell Óscar and I are using the same system (Windows
> 7). My locale is US. Maybe Óscar can tell us what he is using and
> whether switching to locale US makes it worse?

I'm using a pristine Windows 7 64bits US install on a virtual
machine. Switching to Spanish makes no difference.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-18 14:37       ` Óscar Fuentes
@ 2010-07-18 14:49         ` Christoph
  2010-07-18 14:56           ` Óscar Fuentes
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph @ 2010-07-18 14:49 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: 6116

On 7/18/2010 8:37 AM, Óscar Fuentes wrote:

> I'm using a pristine Windows 7 64bits US install on a virtual
> machine. Switching to Spanish makes no difference.

Same here, minus the virtual machine.

Did you set scroll-step to 1?





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-18 14:49         ` Christoph
@ 2010-07-18 14:56           ` Óscar Fuentes
  2010-07-18 15:10             ` Christoph
  0 siblings, 1 reply; 13+ messages in thread
From: Óscar Fuentes @ 2010-07-18 14:56 UTC (permalink / raw)
  To: Christoph; +Cc: 6116

Christoph <cschol2112@googlemail.com> writes:

> On 7/18/2010 8:37 AM, Óscar Fuentes wrote:
>
>> I'm using a pristine Windows 7 64bits US install on a virtual
>> machine. Switching to Spanish makes no difference.
>
> Same here, minus the virtual machine.
>
> Did you set scroll-step to 1?

Yes.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-18 14:56           ` Óscar Fuentes
@ 2010-07-18 15:10             ` Christoph
  2010-07-18 15:51               ` Óscar Fuentes
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph @ 2010-07-18 15:10 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: 6116

On 7/18/2010 8:56 AM, Óscar Fuentes wrote:
> Christoph<cschol2112@googlemail.com>  writes:
>
>> On 7/18/2010 8:37 AM, Óscar Fuentes wrote:
>>
>>> I'm using a pristine Windows 7 64bits US install on a virtual
>>> machine. Switching to Spanish makes no difference.
>>
>> Same here, minus the virtual machine.
>>
>> Did you set scroll-step to 1?
>
> Yes.

I tried this again.

Setting the font size to 11 and not resizing the window after startup 
(i.e. 38x80), I don't see it either.

If I maximize the screen vertically to 56x80, it does happen.

However, turning off Consolas (and switching to Courier New) and 
maximizing vertically it does happen too, but maybe not as often.

It seems to be a general redisplay problem, if the screen area to be 
redrawn exceeds a certain size.

I initially only tested this with my .emacs configuration, but it does 
the same with `emacs -Q'.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-18 15:10             ` Christoph
@ 2010-07-18 15:51               ` Óscar Fuentes
  2010-07-18 16:03                 ` Christoph
  0 siblings, 1 reply; 13+ messages in thread
From: Óscar Fuentes @ 2010-07-18 15:51 UTC (permalink / raw)
  To: Christoph; +Cc: 6116

Christoph <cschol2112@googlemail.com> writes:

> I tried this again.
>
> Setting the font size to 11 and not resizing the window after startup
> (i.e. 38x80), I don't see it either.
>
> If I maximize the screen vertically to 56x80, it does happen.
>
> However, turning off Consolas (and switching to Courier New) and
> maximizing vertically it does happen too, but maybe not as often.
>
> It seems to be a general redisplay problem, if the screen area to be
> redrawn exceeds a certain size.
>
> I initially only tested this with my .emacs configuration, but it does
> the same with `emacs -Q'.

I just tried this:

runemacs -Q
M-x eval-expression ENTER (setq scroll-step 1) ENTER
<maximize the frame vertically>
C-h t
C-n ...

it occasionally recenters, but never gets stuck as described on the
original report. It doesn't matter if I use Courier New or Consolas.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-18 15:51               ` Óscar Fuentes
@ 2010-07-18 16:03                 ` Christoph
  2019-11-01 16:13                   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph @ 2010-07-18 16:03 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: 6116

On 7/18/2010 9:51 AM, Óscar Fuentes wrote:

> I just tried this:
>
> runemacs -Q
> M-x eval-expression ENTER (setq scroll-step 1) ENTER
> <maximize the frame vertically>
> C-h t
> C-n ...
>
> it occasionally recenters, but never gets stuck as described on the
> original report. It doesn't matter if I use Courier New or Consolas.

I decreased the Consolas font-size to 9 (from 11) and maximized 
vertically (72x80). Now, I can see it being stuck once in a while. It 
recovers eventually but there are a couple of seconds where it seems 
nothing happens. After that it recenters and scrolls on until it happens 
again.





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2010-07-18 16:03                 ` Christoph
@ 2019-11-01 16:13                   ` Lars Ingebrigtsen
  2020-04-27 21:53                     ` Stefan Kangas
  0 siblings, 1 reply; 13+ messages in thread
From: Lars Ingebrigtsen @ 2019-11-01 16:13 UTC (permalink / raw)
  To: Christoph; +Cc: Óscar Fuentes, 6116, James Cloos

Christoph <cschol2112@googlemail.com> writes:

> I decreased the Consolas font-size to 9 (from 11) and maximized
> vertically (72x80). Now, I can see it being stuck once in a while. It 
> recovers eventually but there are a couple of seconds where it seems
> nothing happens. After that it recenters and scrolls on until it
> happens again.

Are you still seeing these problems in modern versions of Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 13+ messages in thread

* bug#6116: Emacs 23 is sluggish with Consolas font
  2019-11-01 16:13                   ` Lars Ingebrigtsen
@ 2020-04-27 21:53                     ` Stefan Kangas
  0 siblings, 0 replies; 13+ messages in thread
From: Stefan Kangas @ 2020-04-27 21:53 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Christoph, Óscar Fuentes, James Cloos, 6116-done

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Christoph <cschol2112@googlemail.com> writes:
>
>> I decreased the Consolas font-size to 9 (from 11) and maximized
>> vertically (72x80). Now, I can see it being stuck once in a while. It 
>> recovers eventually but there are a couple of seconds where it seems
>> nothing happens. After that it recenters and scrolls on until it
>> happens again.
>
> Are you still seeing these problems in modern versions of Emacs?

More information was requested, but none was given within 25 weeks, so
I'm closing this bug.

If this is still an issue, please reply to this email (use "Reply to
all" in your email client) and we can reopen the bug report.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-04-27 21:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 20:21 bug#6116: Emacs 23 is sluggish with Consolas font Vegard Øye
2010-07-17  2:31 ` Christoph
2010-07-18  1:22   ` Óscar Fuentes
2010-07-18  7:32   ` James Cloos
2010-07-18 13:17     ` Christoph
2010-07-18 14:37       ` Óscar Fuentes
2010-07-18 14:49         ` Christoph
2010-07-18 14:56           ` Óscar Fuentes
2010-07-18 15:10             ` Christoph
2010-07-18 15:51               ` Óscar Fuentes
2010-07-18 16:03                 ` Christoph
2019-11-01 16:13                   ` Lars Ingebrigtsen
2020-04-27 21:53                     ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).