Re: [dev] st stutter and freeze during window resize via mouse drag

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Fri, 04 Apr 2014 16:49:45 +0200

Greetings.

On Fri, 04 Apr 2014 16:49:45 +0200 Toaster Toaster <toaster23456_AT_gmail.com> wrote:
> On Thu, Apr 3, 2014 at 10:34 PM, Toaster Toaster <toaster23456_AT_gmail.com> wrote:
> > On Thu, Apr 3, 2014 at 9:34 PM, Christoph Lohmann <20h_AT_r-36.net> wrote:
> >> Greetings.
> >>
> >> On Fri, 04 Apr 2014 06:34:55 +0200 Toaster Toaster <toaster23456_AT_gmail.com> wrote:
> >>> Updated to git, still freezes. Spamming "ls" also makes Xorg consume
> >>> crazy amounts of CPU. Do you think they are related? Something to do
> >>> with how St redraws the screen?
> >>
> >> You are the programmer. Please find it out. Debugging such a case is not
> >> possible via e‐mail. My humble guess is that it’s related to your graph‐
> >> ics driver. But that’s just a vague guess.
> >>
> >>
> >> Sincerely,
> >>
> >> Christoph Lohmann
> >>
> >>
> >
> > I don't think it's driver related. It only happens when using St;
> > urxvt and xterm work fine.
>
> Removing tfulldirt() from redraw() seems to fix the problem.

Thanks for the hint. I will look into the drawing code again. Your fix
does not solve all cases. St is still having too many X11 calls which
increase the CPU usage. Stay tuned.


Sincerely,

Christoph Lohmann
Received on Fri Apr 04 2014 - 16:49:45 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 04 2014 - 17:00:07 CEST