From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#47895: 28.0.50; Emacs should only animate images that are visible Date: Tue, 27 Apr 2021 16:51:04 +0100 Message-ID: References: <87r1j6m920.fsf@gnus.org> <8335vmrux2.fsf@gnu.org> <87mttum230.fsf@gnus.org> <83r1j5qd2x.fsf@gnu.org> <87v98ajj3k.fsf@gnus.org> <834kfukx2v.fsf@gnu.org> <87bla2ji7v.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13656"; mail-complaints-to="usenet@ciao.gmane.io" To: Lars Ingebrigtsen , Eli Zaretskii , 47895@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 27 17:52:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbQ0X-0003RH-0D for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 17:52:17 +0200 Original-Received: from localhost ([::1]:47278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbQ0W-0003hn-42 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 11:52:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbQ0I-0003hI-4b for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 11:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbQ0H-0001wm-TS for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 11:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbQ0H-0006P6-Rd for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 11:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Apr 2021 15:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47895 X-GNU-PR-Package: emacs Original-Received: via spool by 47895-submit@debbugs.gnu.org id=B47895.161953867924553 (code B ref 47895); Tue, 27 Apr 2021 15:52:01 +0000 Original-Received: (at 47895) by debbugs.gnu.org; 27 Apr 2021 15:51:19 +0000 Original-Received: from localhost ([127.0.0.1]:50639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbPzb-0006Nw-E3 for submit@debbugs.gnu.org; Tue, 27 Apr 2021 11:51:19 -0400 Original-Received: from outbound.soverin.net ([116.202.65.218]:48303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbPzW-0006Ne-Kj for 47895@debbugs.gnu.org; Tue, 27 Apr 2021 11:51:18 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 5A763601B7; Tue, 27 Apr 2021 15:51:08 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1619538667; bh=gLtG4r1BN8gmXEQYTt/4D15izwlkbKDyrLciTi0RqWQ=; h=Date:From:To:Subject:References:In-Reply-To:From; b=E5EVIA3ot6s7D4OyTpH7SlEBoSCRG1pmgoBu/0HNix3c2O7UQNJuvu4/zIrxi1BLC QDP09GSVV5ixc9EnNCGen6IhWm9lzHx3QVqPOGRW9ILXOmsJzdCIKWZ5rUWPD/tRpX KgLtOz6sO3PLFE5QSDjbdz9jX145fFlq5cbTdfLny3e/Dpki7mhLGKfjwYd+wYaab5 J355AFpDRxbL9v3pCYGT4yC/sQATmV5iCC2GPTLda/8Hw1AJwamEKSDot0ypFXtDNd w6T9UmJ2eHVALpVfSA5TQDnq6yE7xXAnsqTFY5Iumz2UHXTnUOK5TbZqL+dYKQd/Qz pDmF4nu7T2F5Q== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94) (envelope-from ) id 1lbPzM-0002fG-VJ; Tue, 27 Apr 2021 16:51:04 +0100 Mail-Followup-To: Alan Third , Lars Ingebrigtsen , Eli Zaretskii , 47895@debbugs.gnu.org Content-Disposition: inline In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:205031 Archived-At: (I don't think this sent originally, apologies if it shows up twice.) On Sun, Apr 25, 2021 at 09:07:48PM +0200, Lars Ingebrigtsen wrote: > > The code just alters some elements in the image plist. It's unexpected > that this should lead to Emacs doing a lot of work -- unless it's > actually displaying the image. Since the image is being loaded whether it's displayed or not it may be worth checking if it's also being flushed from the cache every time through the animation. If so the high CPU usage is presumably due to Emacs having to reload the frame every time. -- Alan Third