[Bug 43277] Far Cry 3 has poor performance (Ryzen CPU-specific issue?)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Apr 8 10:16:01 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=43277

--- Comment #27 from Roderick Colenbrander <thunderbird2k at gmail.com> ---
Hm, okay. I forgot one small change for GetLogicalProcessorInformation (the
test app uses the Ex version). Try to add the following change on top of the
patch:
diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 8995c362a9..315a91beee 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1318,9 +1318,7 @@ static inline BOOL
logical_proc_info_add_by_id(SYSTEM_LOGICAL_PROCESSOR_INFORMAT

         (*pdata)[i].Relationship = rel;
         (*pdata)[i].ProcessorMask = mask;
-        /* TODO: set processor core flags */
-        (*pdata)[i].u.Reserved[0] = 0;
-        (*pdata)[i].u.Reserved[1] = id;
+        (*pdata)[i].u.ProcessCore.Flags = 0x1;
         *len = i+1;
     }else{
         SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *dataex;

This makes cores also reported as logical for GetLogicalProcessorInformation. I
haven't been able to test or compile this.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list