Always use image surface on macOS
Thissignificantly improves drawing performance.
This commit is contained in:
parent
ffafa5cfc7
commit
cb3f8170ad
4
wscript
4
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', 'AudioToolbox', '-framework', 'AudioUnit'])
|
||||||
conf.env.append_value('LINKFLAGS_AUDIOUNITS', ['-framework', 'Cocoa'])
|
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 (
|
if (
|
||||||
# osx up to and including 10.6 (uname 10.X.X)
|
# 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)
|
(re.search ("^[1-9][0-9]\.", os.uname()[2]) is None or not re.search ("^10\.", os.uname()[2]) is None)
|
||||||
|
Loading…
Reference in New Issue
Block a user