Framework 16 AMD 7040 graphics stuttering

try the “amdgpu_top” program. It might give some indication of what is happening.

It displays status of clocking, power watts, and any throttling that is happening.

Another useful tool is “ectool chargecontrol” and “ectool battery”.
It will give you some details information on whether the battery is charging or not.

There is a whole long thread about it here:

One cause of the game stuttering is this:

  1. In normal gaming the CPU and GPU get the power from a combination of the Power Adapter and the Battery (for peaks that occur above what the Power adapter can provide)
  2. If the battery discharges below a certain amount, the EC will try to charge it again.
    When charging, there is obviously no power from the battery available for games, so the CPU and GPU have to throttle back so as to not exceed what the power adapter can do.
    It is this switching between 1 and 2 that may be causing the stuttering.

Another cause, is just buggy GPU drivers where options like disabling features like panel self refresh etc. may help.