這個(gè)程序設(shè)置為登錄啟動(dòng)比較好?
源碼很簡(jiǎn)單:
//
//? 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 : 0x08000000);
? ? CGSDeferredUpdates(mode);
? ? [self.window close];
? ? [NSApp terminate:self];
}
- (void)applicationWillTerminate:(NSNotification *)aNotification {
? ? // Insert code here to tear down your application
}
@end
beamoff 在github 上的地址:?
https://github.com/JasF/beamoff
另外還有一個(gè)必須做的優(yōu)化
“系統(tǒng)偏好設(shè)置” 進(jìn)入”輔助功能” 然后勾選”減少透明度”?
另一個(gè):
“系統(tǒng)偏好設(shè)置”進(jìn)入”Dock” 最小化窗口時(shí)使用: 選擇“縮放效果”?
another:
“系統(tǒng)偏好設(shè)置”進(jìn)入”擴(kuò)展”,然后將不使用的組件勾掉.?
這幾步搞完以后,界面響應(yīng)速度在我的pc上提升好幾倍.
beamoff 設(shè)置為開機(jī)自動(dòng)運(yùn)行方法
下載?http://files.cnblogs.com/files/yipu/beamoff.zip?
mac會(huì)自動(dòng)解壓 得到 beamoff.app?
系統(tǒng)偏好設(shè)置 - 用戶與群組 - 選中你自己的用戶名 - 選擇 “登錄項(xiàng)” 選項(xiàng)卡 - 點(diǎn) + 號(hào)?
找到你下載的beamoff.app
引用文章:https://blog.csdn.net/scythe666/article/details/50883789