Opened 3 years ago

Closed 23 months ago

#5760 closed defect (fixed)

Ryzen (Zen2) slowdowns

Reported by: OptimusShepard Owned by: Stan
Priority: Release Blocker Milestone: Alpha 24
Component: Core engine Keywords:
Cc: Patch: Phab:D2726, Phab:D3066


The new Ryzen CPUs have random slowdonws, which makes the game unplayable. See therefore the discussion in the forum.

A solution could be the patch D2726. This is a notice, that this issue won't be forgot to be solved for the A24.

Change History (5)

comment:1 by Stan‘, 3 years ago

Patch: Phab:D2726

comment:2 by OptimusShepard, 3 years ago

Milestone: BacklogAlpha 24

comment:3 by Stan‘, 2 years ago

Patch: Phab:D2726Phab:D2726, Phab:D3066

comment:4 by Stan‘, 2 years ago

In r24137

Fix the random slowdowns and speedups on AMD CPUs for Windows

Remove the MAHAF code and binaries, which doesn't work on anything more recent than Windows XP due to the usage of an unsigned driver. Remove the custom timer (PMT, TSC...) code to use the Windows recommended way aka, QueryPerformanceCounter (QPC) Remove the deprecated functions in wpthread relating to this. Some further cleanup will be needed, but this patch is already big enough.

This patch voluntarily excludes the Linux Fix for further investigation as we haven't ruled out a kernel bug yet;

Discussed with: @wraitii, @vladislavbelov, @janwas, AMD Inc, Tested by: Dakara, @OptimusShepard, Stan (On W10, Win7; with and without PCH)


Differential Revision:

Last edited 2 years ago by Stan‘ (previous) (diff)

comment:5 by Stan, 23 months ago

Owner: set to Stan
Resolution: fixed
Status: newclosed

In 24507:

Replace CLOCK_REALTIME by CLOCK_MONOTONIC as suggested by @janwas.
Add sanity checks
Fixes #5760

Tested by: @wraitii, @OptimusShepard

Differential Revision:

Note: See TracTickets for help on using tickets.