I've been trying to get an old game working on Linux through wine. After a lot of trial and error I have a setup where the game runs on Linux using wine, but the only remaning struggle I have right now is that the game consumes 80% CPU in idle (it was even more than that before I disabled CSMT). I have also verified by running this game on windows that this does not occur on windows.
I've tried to use callgrind to profile it and I see one strong contender for a possible cause, I see 150k calls to
Code: Select all
_strcmp_avx2
I've tried to compile wine from source with
Code: Select all
-g -O0
I've been going through the wiki where I found this
but I am unable to find how to see which wine functions are called most often.The usual way to recognize this kind of issue is a lot of CPU time spent in wined3d_resource_map, glMapBufferRange, glSubTexImage2D, Query::GetData or similar calls.
So, is there perhaps another way to debug which functions in wine is called the most or consuming a lot of CPU cycles? Or perhaps you have a completely different suggestion?
Thank you for reading.