https://github.com/whtiehack/hello-world/raw/master/beamoff.zip
// // AppDelegate.m // beamoff // // Created by ANDREI VAYAVODA on 09.11.14. // Copyright (c) 2014 ANDREI VAYAVODA. All rights reserved. // #import "AppDelegate.h" extern void CGSSetDebugOptions(int); extern void CGSDeferredUpdates(int); typedef enum { disableBeamSync = 0, automaticBeamSync = 1, forcedBeamSyncMode = 2 } beamSyncMode; @interface AppDelegate () @property (weak) IBOutlet NSWindow *window; @end @implementation AppDelegate - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { int mode = disableBeamSync; CGSSetDebugOptions(mode ? 0 : 0x0); CGSDeferredUpdates(mode); [self.window close]; [NSApp terminate:self]; } - (void)applicationWillTerminate:(NSNotification *)aNotification { // Insert code here to tear down your application } @end
另外还有一个必须做的优化
“系统偏好设置” 进入”辅助功能” 然后勾选”减少透明度”
另一个:
“系统偏好设置”进入”Dock”
最小化窗口时使用:选择“缩放效果”
another:
“系统偏好设置”进入”扩展”,然后将不使用的组件勾掉.
这几步搞完以后,界面响应速度在我的pc上提升好几倍.
beamoff 设置为开机自动运行方法
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/198635.html原文链接:https://javaforall.net
