argonlefou / DemulShooter

Enable dual lightgun play in arcade games and emulator
116 stars 16 forks source link

Virtua Cop 3 - Aim Issues #132

Closed MarceloF1000 closed 1 year ago

MarceloF1000 commented 1 year ago

Using DemulShooter 10.9.7.0 and GUN4IR.

Aim moves in random directions in mission select screen and during missions.

Aim works fine without DemulShooter hooked to the game.

Here is the debug file. Hopefully it will help find what is going on: Debug_2023-04-29_23-45-23.zip

When running with DemulShooter hooked, I use this control config in Cxbx: image

Without DemulShooter hooked, I use this control config in Cxbx: image

MarceloF1000 commented 1 year ago

Tested with v 10.8.3

Aim is accurate with this version, but there is a huge 3 second input lag for any button pressed (trigger, reload).

MarceloF1000 commented 1 year ago

Tried another combination: Cxbx Nov 20 2022 and DemulShooter 10.9.8

Aim is accurate, but input lag is still there. It starts with a 1 second lag and gets progressively worse. Unplayable unfortunately.

argonlefou commented 1 year ago

Tried another combination: Cxbx Nov 20 2022 and DemulShooter 10.9.8

This is indeed the specified last known working version specified in the wiki.

Now based of what I can see on your initial debug file, in-game calculated coordinates were good based on the position read from your lightgun and your screen/game position. Unfortunatelly, it's impossible to have a beter visibility as I can't tell :

Aim is accurate, but input lag is still there. It starts with a 1 second lag and gets progressively worse. Unplayable unfortunately.

Be sure to remove the -v option from demulshooter if you're not debugging, this is the only cause of lag I can see.

MarceloF1000 commented 1 year ago

I was careful to remove the -v option. The lag is there regardless. Not sure at this point what could be causing it. It only happens with DemulShooter hooked to the game.

argonlefou commented 1 year ago

I didn't get any lag last time I played through the game.

I'll try again within a few weeks if I have time to, to see if I can reproduce the behavior

I'll leave the ticket open if someone has the same issue

MarceloF1000 commented 1 year ago

I was able to narrow down the issue to the Cxbx video configuration. Disabling v-sync resolved the issue. No more input lag.

argonlefou commented 1 year ago

Thanks for the feedback !