Wine slow issue on m2 mac
Wine slow issue on m2 mac
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?
Re: Wine slow issue on m2 mac
Seems to be something that happens between these two calls
1124735.427trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124735.655trace:d3d9:d3d9_surface_UnlockRect iface 011BD028.
1124735.663trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124736.023trace:d3d9:d3d9_surface_UnlockRect iface 011CD5F0.
1124736.028trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124736.370trace: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?
1124735.427trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124735.655trace:d3d9:d3d9_surface_UnlockRect iface 011BD028.
1124735.663trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124736.023trace:d3d9:d3d9_surface_UnlockRect iface 011CD5F0.
1124736.028trace:d3d9:d3d9_texture_incref Exit d3d9_texture_incref.
1124736.370trace: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?
Re: Wine slow issue on m2 mac
Looks like maybe something in here
2818538.7040110: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.0160108:Call KERNEL32.HeapFree(05940000,00000000,0a2608d8) ret=04bdacba
2818538.7040110: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.0160108:Call KERNEL32.HeapFree(05940000,00000000,0a2608d8) ret=04bdacba