feat: Enhance Emulator and Rendering Performance with New Features
- Implemented a Cleanup method in the Emulator class to manage resources effectively during shutdown. - Added auto-pause functionality to the emulator when the window loses focus, optimizing CPU and battery usage. - Updated the DoRender method in the Controller class to include frame timing management and a gentle frame rate cap. - Enhanced texture processing in the Arena class to batch process up to 8 texture commands per frame, improving rendering efficiency.
This commit is contained in:
@@ -32,6 +32,10 @@
|
||||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
|
||||
[self setupMenus];
|
||||
|
||||
// Disable automatic UI state persistence to prevent crashes
|
||||
// macOS NSPersistentUIManager can crash if state gets corrupted
|
||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSQuitAlwaysKeepsWindows"];
|
||||
}
|
||||
|
||||
- (void)setupMenus {
|
||||
|
||||
Reference in New Issue
Block a user