d3xMachina / BetterJoy

Allows the Nintendo Switch Pro Controller, Joycons and SNES controller to be used with CEMU, Citra, Dolphin, Yuzu and as generic XInput
Other
72 stars 5 forks source link

[BUG] dupliacate timestamp enqueued #5

Closed aiyogg closed 1 year ago

aiyogg commented 1 year ago

Describe the bug Logs appear frequently after starting: Duplicate timestamp enqueued. Duplicate timestamp enqueued. Duplicate timestamp enqueued. Duplicate timestamp enqueued. Duplicate timestamp enqueued. ......

Expected behavior I use the Joy controllers and BetterJoy LTS 8.0 version, there are a lot of logs appeared in the log: ' Duplicate timestamp enqueued.', and then lose active show in the task management

Controller (please complete the following information):

** Screenshot

屏幕截图 2023-08-26 155437

d3xMachina commented 1 year ago

The message "Duplicate timestamp enqueud" means you either have the same packet with all the inputs sent by the controller received multiple times or that the timestamp in the packet is not updated.

I have a few questions :

aiyogg commented 1 year ago

Thank you for your response.

d3xMachina commented 1 year ago

You don't have to start hidhide manually, it's started by BetterJoy but it needs to be enabled in the configuration of BetterJoy. To do that you need to click on the arrow pointing to the right on the right side of the UI, it will expand the window and show the configuration. You have to tick the "UseHidHide" option next and click on "Apply" on the bottom right. It will restart BetterJoy with the new configuration.

image

You also have to check that you have the line "HIDHide is enabled" in the logs to be sure it's properly working.

Can you test the following version of BetterJoy to see if it works (I just disabled the timestamp check for thirdparty controllers) : BetterJoy.zip You have to replace your BetterJoy.exe in your installation folder with the one in this archive.

aiyogg commented 1 year ago

Thank you for your effort. It is now functioning properly after replacing the provided archive and enabling the "UseHidHide" option in the configuration menu. There are a few small problems now:

Thank you very much once again. I hope this information can help in improving this useful tool further.

d3xMachina commented 1 year ago

Since the duplicate timestamp message still exist, it means the controller was detected automatically and was not added manually with the "Add Controllers" button (or that I messed up somehow). If that's the case, it also means the controller has the vendor ID of nintendo which is pretty shady for a third-party.

I removed the duplicate timestamp message when not debugging in the following archive so it should not appears anymore. It should fix the program not responding and having high memory usage. (should be around 30MB)

BetterJoy.zip

aiyogg commented 1 year ago

Everything mentioned above is now functioning properly. The duplicate timestamp message no longer appears, the 'not responding' issue has been resolved, and memory usage is normal at around 30MB. Overall, everything looks great. I sincerely appreciate your hard work and assistance; you have greatly helped me. I can finally enjoy playing games now :) I will close this issue at a later time. Best regards to you.