robreuss / VirtualGameController

Software-based game controllers for iOS, tvOS, OS X and watchOS in Swift 4.2.
MIT License
462 stars 44 forks source link

Potential slowness on older hardware #16

Closed ay8s closed 5 years ago

ay8s commented 8 years ago

Not sure if this is specific to VirtualGameController or a wider issue with connectivity to older devices. I have a iPhone 5s connecting to the central as a Peripheral but receiving elements is delayed by a few seconds in some cases.

Might totally be something in my implementation, happy to discuss further @robreuss.

robreuss commented 8 years ago

That's surprising. I'm able to use an iPhone 4s with the SceneKit demo app (where you control the space ship) and it is responsive without delay. Are you seeing that happening when the peripheral user selects an quiz answer? And the delay is definitely on the receiving end (central) and not on the sending end (peripheral)?

robreuss commented 8 years ago

FYI, I get a crash whenever I try to set the avatar image on an iPhone:

2016-01-16 23:49:25.133 CouchQuiz Companion[2051:5749791] *** Assertion failure in -[UIAlertController supportedInterfaceOrientations], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.30.14/UIAlertController.m:542
2016-01-16 23:49:25.136 CouchQuiz Companion[2051:5749791] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIAlertController:supportedInterfaceOrientations was invoked recursively!'
ay8s commented 8 years ago

I'll get that fixed up @robreuss.

The issue is receiving from the central to the peripheral and the delay seems to vary quite alot.