Retroarch freeze when starting for a moment

Hello.

First, I write down about my environment. OS : Window 10 Creators Update VGA: ASUS ROG STRIX GTX 1080 A8G RAM: 32G and i using driver latest version and install directx end-user runtime.

but retroarch stop for a moment when starting and bsnes core too. When i update my VGA driver. for a while this problem not occur, but some hours later, this problem occur again.

I assume that this problem is occured by SDL library. because other application using SDL library also freeze when start up.

I test on windows 10 RS1, but same problem is occured…

I was print debug message.

so.

RetroArch [INFO] :: Enumerating DInput joypads … ------------------ takes long time -------------------- RetroArch [INFO] :: Done enumerating DInput joypads …

it takes long time enumerating Dinput joypads.

so. what is this problem…

Happens to me sometimes, too, but I’m not sure what causes it. It tends to go away when I restart my PC, so I think it’s something external to RetroArch.

My case is exactly same. :frowning: i curious why it happen…

have you tried going into the Driver setting and changing the Joypad driver to other input?

i try to change joypad input driver setting, Input driver = dinput, but it’s not affect to this problem. but Joypad driver is cause. all setting(xinput, dinput, sdl2) is occur this problem. except hid option.

I test a code about dinput. When call a enumdevice function with DIEDFL_ATTACHEDONLY. too slow. but call with DIEDFL_ALLDEVICES quick. so. i guess the way to solve this problem. when enumerating device, use DIEDFL_ALLDEVICES flag. and determine this device is really attached in callback function…

Ah, alright. I’m not intimately familiar with the Windows drivers, but I’ll check to see which method we use.

Thx. I can’t modify this code because i don’t have a controller recognize to dinput.