ppsspp icon indicating copy to clipboard operation
ppsspp copied to clipboard

Significant input lag in all Project Diva games

Open ghost opened this issue 9 years ago • 12 comments

I assume the input lag is present in every game, but it''s a major problem in the Project Diva series, for obvious reasons.

Even with the 60 FPS cheat, a wired controller, Aero turned off in Windows 7, the games are basically unplayable on any difficulty other than easy in my opinion. I've tried the Retroarch core, and the difference between it and standalone PPSSPP in terms of input lag is like night and day.

My question is can anything be done to fix or reduce it? I'm using Windows 7, GTX 970, i5. Not that I think those things make any difference.

ghost avatar Nov 26 '17 22:11 ghost

I'm not quite sure why it's better in retroarch, so this should be looked into.

hrydgard avatar Nov 26 '17 23:11 hrydgard

RetroArch has display options to prevent excessive buffering. Including a pretty neat GL swap trick labelled hard sync. https://github.com/libretro/docs/blob/master/docs/guides/optimal-vsync.md#input-latency There's even quite a sizeable thread on their forums dedicated to getting input latency as low as possible. https://forums.libretro.com/t/an-input-lag-investigation/4407

Dotty avatar Dec 06 '17 03:12 Dotty

So basically using this to sync against the GPU: https://www.khronos.org/opengl/wiki/Sync_Object

We could also do this in Vulkan.

-[Unknown]

unknownbrackets avatar Dec 06 '17 03:12 unknownbrackets

PD Extend has almost zero input lag on my device (Android), and I use touch controls. But PD 2nd has a noticeable input lag (~10-30 ms)

Leopard20 avatar Apr 02 '18 15:04 Leopard20

As noted in #4020, enabling real clock sync helps.

@hrydgard, I wonder if it makes sense to reduce the max frames rendered ahead of display when this setting is on. It's already basically a clear choice that input/network should be realtime as possible, so it seems logical to extend to display as well.

-[Unknown]

unknownbrackets avatar Feb 25 '19 12:02 unknownbrackets

Yeah, that's not a bad idea. I'm not gonna go poking in the frame timing until well after 1.8.0 though :)

hrydgard avatar Feb 25 '19 13:02 hrydgard

Yeah, agreed. For 1.8.0, we should probably remember to add to the release notes that if you get a drop in performance, it's because lag sync works correctly now... or maybe we should just flip it off automatically, it mostly didn't work before anyway.

-[Unknown]

unknownbrackets avatar Feb 25 '19 13:02 unknownbrackets

I think it's best to keep it turned off automatically. It's best to not have people complaining about a drop in performance soo suddenly.

AkiraJkr avatar Feb 25 '19 13:02 AkiraJkr

I'm gonna change the name of the ini parameter so it gets reset for everybody.

hrydgard avatar Feb 25 '19 14:02 hrydgard

Just a reminder: PD Extend works great already so make sure you don't break it in 1.9.0! ;)

Leopard20 avatar Feb 25 '19 20:02 Leopard20

I don't plan to break anything, and if I do let me know :)

hrydgard avatar Feb 25 '19 20:02 hrydgard

Closnig this in favor of #17685

hrydgard avatar Sep 06 '23 17:09 hrydgard