Skip to content

Commit

Permalink
ProcessEvents() does nothing in Mariani
Browse files Browse the repository at this point in the history
  • Loading branch information
sh95014 committed Dec 12, 2023
1 parent 5b80859 commit 756e998
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions source/frontends/mariani/EmulatorViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
#import "context.h"

#import "benchmark.h"
#import "Core.h"
#import "fileregistry.h"
#import "programoptions.h"
#import "sdirectsound.h"
#import "MarianiFrame.h"

#import "CommonTypes.h"
#import "MarianiFrame.h"
Expand Down Expand Up @@ -199,15 +199,6 @@ - (void)runLoopTimerFired {
NSDate *start = [NSDate now];
#endif

bool quit = false;
frame->ProcessEvents(quit);
if (quit) {
[self.delegate terminateWithReason:@"requested by frame"];
}
#ifdef DEBUG
NSTimeInterval eventProcessingTimeOffset = -[start timeIntervalSinceNow];
#endif

frame->ExecuteOneFrame(1000000.0 / TARGET_FPS);
#ifdef DEBUG
NSTimeInterval executionTimeOffset = -[start timeIntervalSinceNow];
Expand Down Expand Up @@ -236,8 +227,7 @@ - (void)runLoopTimerFired {
if (duration > 1.0 / TARGET_FPS) {
// oops, took too long
NSLog(@"Frame time exceeded: %f ms", duration * 1000);
NSLog(@" Process events: %f ms", eventProcessingTimeOffset * 1000);
NSLog(@" Execute: %f ms", (executionTimeOffset - eventProcessingTimeOffset) * 1000);
NSLog(@" Execute: %f ms", executionTimeOffset * 1000);
}
#endif // DEBUG
}
Expand Down

0 comments on commit 756e998

Please sign in to comment.