mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-27 00:30:26 +00:00
Move limit up to 20fps.
This commit is contained in:
parent
a1544f3033
commit
d16dc3a5d7
@ -73,7 +73,7 @@ typedef NS_ENUM(NSInteger, CSMachineKeyboardInputMode) {
|
||||
- (void)setMouseButton:(int)button isPressed:(BOOL)isPressed;
|
||||
- (void)addMouseMotionX:(CGFloat)deltaX y:(CGFloat)deltaY;
|
||||
|
||||
@property (atomic, strong, nullable) CSAudioQueue *audioQueue;
|
||||
@property (nonatomic, strong, nullable) CSAudioQueue *audioQueue;
|
||||
@property (nonatomic, readonly, nonnull) CSScanTargetView *view;
|
||||
@property (nonatomic, weak, nullable) id<CSMachineDelegate> delegate;
|
||||
|
||||
|
@ -39,9 +39,9 @@ namespace {
|
||||
|
||||
struct MachineUpdater {
|
||||
void perform(Time::Nanos duration) {
|
||||
// Top out at 0.1 seconds; this is a safeguard against a negative
|
||||
// Top out at 1/20th of a second; this is a safeguard against a negative
|
||||
// feedback loop if emulation starts running slowly.
|
||||
const auto seconds = std::min(Time::seconds(duration), 0.1);
|
||||
const auto seconds = std::min(Time::seconds(duration), 0.05);
|
||||
machine->run_for(seconds);
|
||||
}
|
||||
|
||||
@ -463,9 +463,6 @@ struct ActivityObserver: public Activity::Observer {
|
||||
updater.update([event] {
|
||||
event();
|
||||
});
|
||||
// @synchronized(_inputEvents) {
|
||||
// [_inputEvents addObject:event];
|
||||
// }
|
||||
}
|
||||
|
||||
- (void)clearAllKeys {
|
||||
|
Loading…
x
Reference in New Issue
Block a user