From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: How to measure frame rate in fps? Date: Tue, 01 Jun 2021 12:00:14 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4384"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Cc: Emacs-Devel devel To: Jimmy Yuen Ho Wong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 01 12:17:54 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lo1T8-0000wS-6s for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Jun 2021 12:17:54 +0200 Original-Received: from localhost ([::1]:46164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo1T7-0005vP-A9 for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Jun 2021 06:17:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo1Qi-000546-Fe for emacs-devel@gnu.org; Tue, 01 Jun 2021 06:15:24 -0400 Original-Received: from mail-db8eur05olkn2033.outbound.protection.outlook.com ([40.92.89.33]:62625 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo1Qf-0005sd-Ff for emacs-devel@gnu.org; Tue, 01 Jun 2021 06:15:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NqIbvmbYrC+pDgZLivxeBZ1Y+k0ZXw43tSdrr1xhw2MIo4S3ewMgbCgG34mnOjpIR0X4ED7IdmuL7Tx3KtqxOJuHP96Zhim4ZWbrTD+w1EzEJQzI5cyaf/ntgSdrX1wf53HzzMvUatF4TacpnwkoBYgE+ae1NR1Sa7YR/r6yuVqe1FhvUwbmtoXuq+zrM9kr8ealhlPBjDHrrhqoJWP//ING0Awwu5TzLHIHTlpegalv4vO3SUslpVMzKDv3fUrdsSA12lLChGqKb5F4/LmkmPRH1q3Q337YoowDucNhYZgdgRlbr0+tf6yrcN3R00jsSoWtJ3+eYC6/7TFez7eC5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TzCZqozntnyZS3LPVz6fmWL2UR5vL/CDBv81CSkEth0=; b=nfv1rVWPEHM2mB5JN4ZcYcyGuZGD8MNV9kbCli+3DRanPfe1xqJvvbl4nmuTigEfUwaCdeCxe+aZhndL8GqhhjL4n4PMtjfiaHwQCzUTSDNeI5uZ00E82uoBUVic1NnILp3LLjWBbUibHdZaCpsQBWwkImAV03lTnwl95t8M0860Ycvj4YT3rJ502NdaLnkOrjH8M0Oldhp/NvR7zw8rUVaET6mTA+DFJ0jgcol4tW6mLMR19TpmCXDYrZnz0PlZN4RW+m3ktTT7re8LFrtT+l5AB5aUqVycoDxcMyFi2x90oYhsBwq1OrPAQIhv0l1kGLg8s/0s8MG+eraIqlYGsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TzCZqozntnyZS3LPVz6fmWL2UR5vL/CDBv81CSkEth0=; b=cBGX81dnxWUTlxpdLLnMch0UzE3At7meqhKpB1UKRGCiDt2i+z6mwHjPQMQQD6sBSR904duXcNiXkIepHZqueKra7D2W4g9gzTG04vJ6w+2bEpM/ZwgZxLDM3uEr6Su6eKk2h8pjQgTScG4At5xkgy46VO5d2Vio0aEFWJ0QEyXz/1H1MjUWTOhWdngrbBxF666hlEXWCmRcNDmvZSQaFK7LKwQiYdsZzm9H48PuiohO1t5qwbnslMnh1s2g3nkon6jY3v8HfJ2SGtNUNcSj6nuUak9ib33ceb0aLjcoUNz/Eo7Dz9u3Z+PfL/Gq7Th+jTw6D9lJH3V2qqa+j8Md+Q== Original-Received: from AM6EUR05FT032.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::4a) by AM6EUR05HT218.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.28; Tue, 1 Jun 2021 10:00:14 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc11::48) by AM6EUR05FT032.mail.protection.outlook.com (2a01:111:e400:fc11::101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.28 via Frontend Transport; Tue, 1 Jun 2021 10:00:14 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:96490311F50344637DCB9D921764CF353F462D3138CC93440EFBD1E70F6E55BF; UpperCasedChecksum:7D1FA52720A361CD80D5CE9166729CFB7EE73AD159FF64B5AAE4FDC082ECAC77; SizeAsReceived:7489; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591%7]) with mapi id 15.20.4173.030; Tue, 1 Jun 2021 10:00:14 +0000 In-Reply-To: (Jimmy Yuen Ho Wong's message of "Mon, 31 May 2021 14:03:17 +0100") X-TMN: [6m53NgupekCfvyeLFAL7ZRlRbUqQ6vfb] X-ClientProxiedBy: AM7PR02CA0020.eurprd02.prod.outlook.com (2603:10a6:20b:100::30) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82fsy1lxap.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from HP-Laptop.homepc (81.232.177.30) by AM7PR02CA0020.eurprd02.prod.outlook.com (2603:10a6:20b:100::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.21 via Frontend Transport; Tue, 1 Jun 2021 10:00:14 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 1f136775-480d-484e-ade6-08d924e40d32 X-MS-TrafficTypeDiagnostic: AM6EUR05HT218: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JFuTFoMz9y1MViKRtCQtuFUSRalJbkdbnf4xp3oIekgslXwtImENfLg2fyLdSQHYFoPN2TjW8DGYpgVrz9+qEsQ6RpX4QgD+1phQlypzQLkn9LPtgv4jlsOJxo/n8FEZClQc3zafBLWPDd1Or/RvATzbkHnoX8le5OOW+ATMzJW4C6AWjJZZ2fsYzJz6F4K/0e/1Wo2mKqoyX2RrJtDinbAfxB3+VwDQi74+KZunHzMfkxv/NJlAI7JnB2MBhvbm7E5EqR/t3jFhoZGX2OJShEyk7CCehs5573k+VWmugbXmPEUajiYKMn0SZ5q4GjoU8MudFJtvG5YYvqfz4pogJmmtzrCuIVv3wpe5F4N1s4epsIMpt4Fd6sZs9+OieOWUkR4iYILshx7y+kiGJ5q2Pg== X-MS-Exchange-AntiSpam-MessageData: y2wn/hKt7TMwhWULiuG2HSLpSA/1tS7pOn4maiU9+F4+p5kfKn2WQMNHTw1zeGZ3o4wWoxx0yGFgDZ4H/tk0gQJPqQjmfK9rCi+Psojd26j4kjc0D4wHAh1hs1z1S1ntNYh8Dbor/ZG2j8ySF1gcbw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f136775-480d-484e-ade6-08d924e40d32 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2021 10:00:14.8257 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM6EUR05FT032.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6EUR05HT218 Received-SPF: pass client-ip=40.92.89.33; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270189 Archived-At: Jimmy Yuen Ho Wong writes: > Hi everyone, > > I've gotten into a discussion with isort's author about how fast > editors can actually render text. FPS is not necessary the measure of how fast you can render text. Sure it directly affects fps, but fps is more complex than just how fast text is rendered. It is also affected by how fast your hardware and OS can swap frames, how your OS multitasks processes etc. When you read benchmarks at sites like Tomshardware, notice that they use different games and applications to measure the performance. They really are concerned with how the underlaying hardware and OS perform in that particular game and application. Different games will result with different number of FPS. So FPS is just a relative measure for the application at hand. How fast text can be rendered on any computer depends on the hardware of course and how efficiently code used to render text use that hardware. Most "normal" applications like text processors will use whatever the OS provides. I guess you have to ask Mr. Eliz & Co for the details about how Emacs renders text, or look at the source. Anyway, you could create small app to some teoretical speed of how much text you could render on your own computer with your choice of the library. "Theoretical" because it is really difficult to get reliable measure when it comes to just rendering speed on modern computers since cpus run at variable speed to save the energy, OSs are scheduling processes and stuff at they will, data has to be send over the bus to gpu if there is one, and so on. For the Emacs I don't think you can get a meaningful measure "out of the box" since Emacs run in a blocking event qeue, which means Emacs does nothing unless there is input. Maybe you could construct a test and render a considerably big piece of text in an empty buffer and take the time, repeat several times and take mean time, to give you some feel of howa fast it happends, but I am not sure how reliably you could do this in Emacs. I don't think it matters much either. Most CPUs can render "enough" text, fast enough that it really isn't important. What does it matter if one can render 10 billion characters at 144 fps, if one can display only few hundreds or max few thousands at the time on the screen? Who cares. Consider a Ferrari vs a Volvo. Sure, Ferrari is faster, but Volvo will do the jobb 99% of the time for 99% of the people.