r/SteamDeck•
BFCE

PSA: disabling SMT provides big performance and battery life benefits in some games

PSA / Advice

You can toggle SMT on or off with a Decky extension called PowerTools. In Minecraft Java I got nearly a 2x fps boost

Posted Jan 16, 2023, 8:03 PM UTC

715
eqcliu•

Also might improve fps in older games.

Fallout New Vegas ran better for me with less random fps dips when I disable smt and ran on 4 cores/4 threads. I'm guessing it's because the extra headroom allowed all cores to run pegged at 3.5ghz

2
Intoxicus5•

No, it is because older games weren't coded to use multithreading.

When they have a physical core with multithreading, it confuses it and kills fps.

Disabling Simultaneous Multi Threading(SMT) makes it physical cores only. And the older game can actually understand that and perform properly.

2
eqcliu•

Good to know, thank you for the explanation!

2
UncleTedGenneric•

Can power tools settings be on a pregame setup? Or would I need to toggle it any time I play a game that benefits?

(At work, decks at home, can't check for myself at this point)

1
fereval•

Yes, the plugin "PowerTools" now has a "persistence" toggle, if enabled your changes will apply automatically all the next times you launch the game.

https://github.com/NGnius/PowerTools

1
Joker28CR•

Would be cool if we could togle this per game

1
fereval•

You can do now ! "PowerTools" now has a "persistence" toggle, if enabled yours changes will apply automatically all the next times you launch the game.

https://github.com/NGnius/PowerTools

1
FIVEGRAVES512GB - Q3•

Thats music man; did you test any other games ? Like Diablo 2 Resurrected or Grim Dawn for example ? Greetz.

0
Intoxicus5•

It will only be for older games that were made before multithreaded cores were a thing.

1
[deleted]•

[deleted]

-1
Tenshinen64GB - Q2•

which is essentially what Steam Deck is with SMT

No, this isn't really true.

The way SMT works is each CPU core has the ability to handle a single whole number calculation, or a single decimal calculation, usually not both.
But with SMT enabled, it can do both at once if needed. But if all your calculations are whole numbers, you have effectively a 4 core CPU. Same deal if they're all decimals. However if you need to calculate both, you're able to run both calculations at once, which saves waiting for free cores, which saves both battery life and grants extra performance.

Problems however occur if the scheduler tries to hand certain tasks to a core that isn't actually a 'real' core. Usually they alternate, so Core 0 is real, Core 1 is SMT, Core 2 is real, Core 3 is SMT, and so on. Some schedulers just aren't great at handling this and will sometimes give a whole number calculation to both 0 and 1, which causes stalling since 1 is virtual it has to wait for 0 to finish since they're both the same form of calculation. This is why disabling SMT (or changing core affinity) can fix this, as now only 'real' cores are getting commands

So short version: SMT is, in a perfect ideal scenario, doubling your cores. However reality is much less generous, and it can be, in a worst case, no difference at all, or even worse performance. Typically it's a small bump in performance, though, which is why all CPU makers like to implement it

As far as I can tell, Linux's Ryzen scheduler must be worse than Windows', because I've never seen an issue like this while running under Windows, except when Ryzen first launched

I've massively simplified this explanation to hopefully keep it understandable, in reality we call the 'decimal' numbers 'floating point' and there's a whole bunch of other specifics to it but that's the gist

7
[deleted]•

[deleted]

-2
Tenshinen64GB - Q2•

SMT essentially doubles the cores

I just gave you four paragraphs explaining the technical details of why this isn't true but go off I guess

9
Intoxicus5•

This is the guy ranting about Zram and gets salty when no one cares about his nonsense or pushes back on it.

He's clueless and won't admit.

1
[deleted]•

[deleted]

-2
Intoxicus5•

Just stop.

You are wrong.

1
Intoxicus5•

Oh wait, it's the ZRAM dummy.

You are 100% completely and provably wrong.

And hilariously so.

1
Intoxicus5•

No, it's not core count.

It's multithreaded cores.

Your physical CPU cores are split into multithreaded cores. Or "virtual cores" in a sense(they're real, just not physically separated).

Older games and applications that were not coded for multithreading get confused by it. Because they only know what a physical core is.

When you disable SMT, you lose total system performance.

But with older games that don't support SMT, it's beneficial because now they only see the physical cores.

It can be 8 or 16 physical cores. That doesn't matter. It's NOT at all about core count.

It's about multithreaded cores vs physical cores.

1