Opened 4 years ago

Closed 3 years 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

Description

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

https://wildfiregames.com/forum/index.php?/topic/26890-problem-with-ryzen-3000er-series/page/5/

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, 4 years ago

Patch: Phab:D2726

comment:2 by OptimusShepard, 4 years ago

Milestone: BacklogAlpha 24

comment:3 by Stan, 3 years ago

Patch: Phab:D2726Phab:D2726, Phab:D3066

comment:4 by Stan, 3 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)

Threads: https://wildfiregames.com/forum/topic/28367-amd-ryzen-threadripper-user-read-before-posting/ https://wildfiregames.com/forum/index.php?/topic/26890-problem-with-ryzen-3000er-series/page/3/

Differential Revision: https://code.wildfiregames.com/D2726

Last edited 3 years ago by Stan (previous) (diff)

comment:5 by Stan, 3 years 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: https://code.wildfiregames.com/D3066

Note: See TracTickets for help on using tickets.