You could make it so that when it gets to that point, less important scripts which were running every frame are made to run every other frame or every third frame (or every nth frame until you balance the lag with not breaking the game).
ex)
framesPassing++;
if ((!LagTime) || (!(framesPassing%2))) {
// Do something every frame until LagTime is true, then only do it every other frame
}
I’d try this before lowering the quality as this would be less noticeable to the player and less likely to break their immersion.
|