piston icon indicating copy to clipboard operation
piston copied to clipboard

Noticable update event slow down, when laptop is disconnected from power

Open BeldrothTheGold opened this issue 1 year ago • 3 comments

Hello,

I noticed today when I disconnected my development laptop from power, game updates in my, very simple, Tetris clone slow down noticeably.

To confirm the issue is not with my game code, I tested this on the piston getting started tutorial code and see the same slowdown occurs there. Attached a GIF of what I am seeing. You can clearly see the slowdown when the laptop is disconnected from power, and then speeds up when reconnected shortly after.

Update Slowdown

This seems like it shouldn't be normal behavior, right?

BeldrothTheGold avatar Dec 20 '22 19:12 BeldrothTheGold

A similar example made using using Bevy engine, becomes noticeably less smooth when the laptop is disconnected from power, but it does not slow down.

V/R Scott

BeldrothTheGold avatar Dec 21 '22 01:12 BeldrothTheGold

Could it be a bug in the OpenGL driver?

bvssvni avatar Dec 22 '22 18:12 bvssvni

To be clear the black artifacts seen in the gif are not present on my PC. What I'm seeing looks like a consistent decrease in the number of update events the game code is receiving from Piston when I unplug.

BeldrothTheGold avatar Dec 22 '22 18:12 BeldrothTheGold