From 74d4343beb74424b400f5f65e620abf98b8c1562 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Fri, 4 Feb 2022 14:23:00 +0200

Subject: [PATCH 1/1] macOS: Use Metal on >60 Hz displays

The problem with the occasional stutters related to SDL_WaitEvent() are still there, but on a 120 Hz display it's even worse to be stuck on 60 Hz. Metal is required for 120 Hz.


res/about/version.gmi | 1 +

src/macos.m | 6 +++---

2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/res/about/version.gmi b/res/about/version.gmi

index 8de16a87..9fa25707 100644

--- a/res/about/version.gmi

+++ b/res/about/version.gmi

@@ -11,6 +11,7 @@

+* macOS: Use Metal for drawing graphics if display refresh rate is higher than 60 Hz.

1.10.3

diff --git a/src/macos.m b/src/macos.m

index 1019d13d..ad236784 100644

--- a/src/macos.m

+++ b/src/macos.m

@@ -72,10 +72,10 @@ static NSString *currentSystemAppearance_(void) {

}

iBool shouldDefaultToMetalRenderer_MacOS(void) {

 const iInt2 ver = macVer_();

}

static void ignoreImmediateKeyDownEvents_(void) {

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.17/patch/74d4343beb74424b400f5f65e620abf98b8c1562.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
66.083094 milliseconds
Gemini-to-HTML Time
0.951238 milliseconds

This content has been proxied by September (3851b).