From cb3f8170ad8e98a5349bca8684b9ac22fd766f08 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 4 Feb 2023 22:24:16 +0100 Subject: [PATCH] Always use image surface on macOS Thissignificantly improves drawing performance. --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index 39761da5f5..76aca988f0 100644 --- a/wscript +++ b/wscript @@ -1095,6 +1095,10 @@ def configure(conf): conf.env.append_value('LINKFLAGS_AUDIOUNITS', ['-framework', 'AudioToolbox', '-framework', 'AudioUnit']) conf.env.append_value('LINKFLAGS_AUDIOUNITS', ['-framework', 'Cocoa']) + # use image surface for rendering + conf.env.append_value('CFLAGS', '-DUSE_CAIRO_IMAGE_SURFACE') + conf.env.append_value('CXXFLAGS', '-DUSE_CAIRO_IMAGE_SURFACE') + if ( # osx up to and including 10.6 (uname 10.X.X) (re.search ("^[1-9][0-9]\.", os.uname()[2]) is None or not re.search ("^10\.", os.uname()[2]) is None)