Re: UIFeedbackGenerator: 0.1 second latency vs. built-in system haptics?
Re: UIFeedbackGenerator: 0.1 second latency vs. built-in system haptics?
- Subject: Re: UIFeedbackGenerator: 0.1 second latency vs. built-in system haptics?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Mon, 03 Oct 2016 13:09:05 +0000
If I had an iPhone 7 I could test this, but you're correct in stating that
haptics need to fire nearly instantaneously for them to be perceived
correctly by a user. I know mechanically there is a small time to ramp to
full movement, but would expect it to be nominal.
Eric
On Sun, Oct 2, 2016 at 10:07 PM Archagon <email@hidden> wrote:
> I was trying to play some audio along with a UIImpactFeedbackGenerator
> action, and I noticed that the haptic feedback was delayed by about
> 0.1 seconds after each tap — even when prepare() was correctly called
> beforehand. Digging further, I discovered that even in the simplest
> possible test case — just a button with a touchUpInside action
> triggering haptics, along with a UISwitch for comparison underneath —
> the button's haptics were delayed as before, while the switch's native
> haptics were instantaneous. How can I get rid of this latency in my
> custom controls? Surely, haptics are only effective when they there's
> no perceived delay!
>
> Here's the test case project:
> https://github.com/archagon/uifeedbackgenerator-lag-test
>
> Thank you,
> -Alexei Baboulevitch
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden