由于调用了可疑调试功能,GCContextDrawImage的性能很差

问题描述 投票:1回答:1

GCContextDrawImage的呼叫原来是我的Mac OS X应用程序的瓶颈,尤其是在视网膜屏幕上。我设法通过Avoiding colorspace transformations when blitting, Mac OS X 10.11 SDK减轻了一点,但它似乎仍然比我预期的要慢。

[使用Instruments调查堆栈转储时,我注意到很多时间都花在了两个名称非常可疑的函数上,vImageDebug_CheckDestBuffer正在调用_ERROR_Buffer_Write__Too_Small_For_Arguments_To_vImage__CheckBacktrace。请参阅下面的完整堆栈转储。

在我看来,这就像某种调试断言?我是否在运行vImage库的调试版本时没有意识到?我可以做些什么来阻止这些功能占用我所有宝贵的时间吗?

Stack trace captured with Instruments

macos performance core-graphics retina-display vimage
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.