AnnoyingCat Yes, you either need to use delta to adjust the stamina loss depending on the varying frame rate or put this code into _physics_process() because that one gets called with a fixed frequency (for example 60 times per second). Although ideally you should still use delta.
But you never know how often _process() gets called. A good way to make sure your game is not frame rate dependent is to disable VSync in your project settings to let your game run with for example 1000+ FPS.