Wine slow issue on m2 mac

Questions about Wine on macOS.
Locked
rgirard59
Newbie
Newbie
Posts: 3
Joined: Wed Dec 27, 2023 6:53 pm

Wine slow issue on m2 mac

Post by rgirard59 »

Hello. I am looking into an issue where there is a small delay when I am transitioning between screens on a game in wine and looking at logging, it seems like maybe it's related to a ntdll.NtWaitForMultipleObjects call. This is on a Mac m2. I have tried pretty much all recent wine versions and well as crossover and they all do it. Interestingly though There is a scenario where it doesn't happen until I install directx9. Could also be around a ntdll.RtlAllocateHeap call. Does this sound like something that might be an issue that I could look into fixing in the source?
rgirard59
Newbie
Newbie
Posts: 3
Joined: Wed Dec 27, 2023 6:53 pm

Re: Wine slow issue on m2 mac

Post by rgirard59 »

Seems to be something that happens between these two calls

1124735.427:0248:trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124735.655:0248:trace:d3d9:d3d9_surface_UnlockRect iface 011BD028.

1124735.663:0248:trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124736.023:0248:trace:d3d9:d3d9_surface_UnlockRect iface 011CD5F0.

1124736.028:0248:trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124736.370:0248:trace:d3d9:d3d9_surface_UnlockRect iface 0AC002B8.

Pretty consistent that the time spikes between those two but I don't see any code where this happens, so I am not sure where it would happen. In the game itself?
rgirard59
Newbie
Newbie
Posts: 3
Joined: Wed Dec 27, 2023 6:53 pm

Re: Wine slow issue on m2 mac

Post by rgirard59 »

Looks like maybe something in here

2818538.704:0104:0110:Call ntdll.NtWaitForMultipleObjects(00000001,076af0d0,00000001,00000000,00000000) ret=1ed9ce941
0110: select( flags=2, cookie=077af850, timeout=infinite, size=8, prev_apc=0000, result={}, data={WAIT,handles={00cc}}, contexts={} )
0110: select() = PENDING { call={APC_NONE}, apc_handle=0000, signaled=0, contexts={} }
2818539.016:0104:0108:Call KERNEL32.HeapFree(05940000,00000000,0a2608d8) ret=04bdacba
Locked