Always use image surface on macOS

Thissignificantly improves drawing performance.
This commit is contained in:
Robin Gareus 2023-02-04 22:24:16 +01:00
parent ffafa5cfc7
commit cb3f8170ad
1 changed files with 4 additions and 0 deletions

View File

@ -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)