http://bugs.winehq.org/show_bug.cgi?id=21204
--- Comment #7 from Roman m01brv@mail.ru 2010-09-06 03:28:27 CDT --- I've done some profiling using sysprof. According to it, almost all of the time in D3D mode with lockfb=1 WC3 spends in the following stack sequence:
war3.exe IDirect3DSurface8Impl_LockRect IWineD3DSurfaceImpl_LockRect IWineD3DSurfaceImpl_LoadLocation read_from_framebuffer i965_dri.so (not resolved in subroutines, though it seems I have all necessary debugging symbols installed)
Eventually, almost all of the time is spent in the video driver (i965_dri.so), though I think the low performance may be due to inoptimal organization of the OpenGL calls in the wine's Direct 3D, since the problem exists on many video cards.