https://bugs.winehq.org/show_bug.cgi?id=57504
--- Comment #9 from roidal@googlemail.com --- I did more testing and it seems like it's caused by
get_win_monitor_dpi() -> monitor_dpi_from_rect() -> lock_display_devices()
It's the lock_diplay_devices() which either seem to be blocked, or block something else by taking too much time. I believe it is rather the last one.
Worth mentioning here is that get_win_monitor_dpi() seem to be called at least for each mouse-update, and therefore more than 1000 times per second. When i move the mouse it is even more and i get 50k calls within just a few seconds.