WineHQ
Wine Forums

Board index » WineHQ » Wine Help




 Page 1 of 1 [ 1 post ] 



 
Author Message
 Post Posted: Sun Aug 12, 2012 7:32 am 
Offline
Newbie
Newbie

Joined: Sun Aug 12, 2012 7:22 am
Posts: 1
Hello,
Orcs must die 2 is running quite slowly on my computer (noticable lag, but there is no FPS counter).
I have decided to profile, with sysprof and compilation changes.

It appears that memcpy is taking almost 20% of CPU time.
When compiling with -O2 (and -fno-omit-frame-pointer), sysprof says memcpy is called from wined3d_buffer_unmap.
In -O0, memcpy is still number 1 CPU eater, but called from wined3d_buffer_preload, in sysprof.

Removing memcpy call on line 727 (wine 1.5.10), call is memcpy(map + start, This->resource.allocatedMemory + start, len);
improves performance, and as expected shows some screen corruption.

The wierd thing, is that removing the wined3d_buffer_unmap function, with a return right at the beginning does not break the game, and speeds up.

Could someone tell me what all those bufer related functions should do? There may be some optimizations.


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 1 post ] 




Board index » WineHQ » Wine Help


Who is online

Users browsing this forum: No registered users and 3 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: