Provenance icon indicating copy to clipboard operation
Provenance copied to clipboard

Apple TV 4K 2nd Generation two gamepad lag problem

Open yunusemreaytac opened this issue 3 years ago • 9 comments

Hello, i have Apple TV 4K 2nd generation.

I installed Provenance 2.1.0 Apple TV version 15.4 I installed Provenance to Apple TV with XCODE

Problem occurs when I connect the second game controller. I have Dualshock and Dualsense gamepads, they all have the same problem, there is no problem other App Store games, there is problem only Provenance, i tried older Provenance versions too, problem still exsist.

I have another old model Apple TV HD, there is no problem on HD device, problem is on Apple TV 4K 2nd Generation. I tried every possible condition, closed router, closed wifi, closed every wireless device in home, but still same.

When I connect the second gamepad, it lags a lot, sometimes not responding at all, or responding more than once. It's not a problem with any game core either, it's the same problem in the provenance menu. When navigating between games, there is no problem with a single gamepad, when I connect the second one, it starts to lag.

Thank you.

yunusemreaytac avatar Mar 22 '22 08:03 yunusemreaytac

Hello, I have installed the latest version 2.1.1 on my Apple TV, but this problem still persists. I hope this bug is resolved in version 2.1.3. Thank you.

yunusemreaytac avatar Oct 21 '22 20:10 yunusemreaytac

Some questions,

does it lag in the browser UI? if no, does it lag in only some cores?

JoeMatt avatar Oct 29 '22 12:10 JoeMatt

Hello Joe,

This is happens in game (not happening in browser UI) i tried this FCEUX and MEDNAFEN cores. Both are the same, i am sharing a video you can see problem. Sorry for the late reply, i was out of town. Thank you!

Video link: https://drive.google.com/file/d/1Ck-szN6ZzIy4ehcXtCWa-IkX7iRokFpp/view?usp=share_link

yunusemreaytac avatar Nov 06 '22 14:11 yunusemreaytac

Interesting.

I wonder if there's some double polling going on in the code for player 2.

The controller code needs a revisit. Some cores do a per-frame scan of the button state, and others do a callback from the controller that updates the state struct async of the render thread, which is the better method. In the latter case, if no buttons are pressed, nothing is executed. The former, scan controller 1 to 4, each button, which is slower as you add more controllers.

I think mednafen, since it's so complex with many sub cores, is still doing the old method and there's probably some bad code in there.

I'll add this to my 2.1.3 todos.

JoeMatt avatar Nov 07 '22 16:11 JoeMatt

Okay thank you so much!

yunusemreaytac avatar Nov 07 '22 17:11 yunusemreaytac

Hello Joe, I have installed the latest version 2.2.0 on my Apple TV 4K, but this problem still persists.

yunusemreaytac avatar Mar 06 '23 09:03 yunusemreaytac

@yunusemreaytac can you confirm your TV is set to “Game Mode” or “Sports Mode”? The lag without it might only be noticeable on certain cores.

alexchandel avatar Mar 18 '23 20:03 alexchandel

Hello Joe i have gaming monitor and tv. Both are have same problem. Its not about game mode or sport mode :) Thank you.

yunusemreaytac avatar Mar 26 '23 12:03 yunusemreaytac

I have the exact same issue.

Please try disconnecting the Apple Remote: Hold down „Volume down“ and „Home“ several seconds (about 5?). It solved my issues with the second controller in RetroArch. (need to reinstall Provenance to verify it there)

frankebersoll avatar Apr 18 '23 20:04 frankebersoll