mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Don't store the initial values
1. We don't use them anyway (though that could be a feature request) 2. They weren't stored per-client, so would be incorrect anyway
This commit is contained in:
parent
7f196cdd1a
commit
5ffe832faf
@ -71,9 +71,6 @@ struct GameModeContext {
|
|||||||
struct GameModeGPUInfo *stored_gpu; /**<Stored GPU info for the current GPU */
|
struct GameModeGPUInfo *stored_gpu; /**<Stored GPU info for the current GPU */
|
||||||
struct GameModeGPUInfo *target_gpu; /**<Target GPU info for the current GPU */
|
struct GameModeGPUInfo *target_gpu; /**<Target GPU info for the current GPU */
|
||||||
|
|
||||||
int initial_renice; /**<Initial renice value */
|
|
||||||
int initial_ioprio; /**<Initial ioprio value */
|
|
||||||
|
|
||||||
/* Reaper control */
|
/* Reaper control */
|
||||||
struct {
|
struct {
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
@ -416,11 +413,9 @@ int game_mode_context_register(GameModeContext *self, pid_t client, pid_t reques
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Store current renice and apply */
|
/* Store current renice and apply */
|
||||||
self->initial_renice = game_mode_get_renice(client);
|
|
||||||
game_mode_apply_renice(self, client, 0 /* expect zero value to start with */);
|
game_mode_apply_renice(self, client, 0 /* expect zero value to start with */);
|
||||||
|
|
||||||
/* Store current ioprio value and apply */
|
/* Store current ioprio value and apply */
|
||||||
self->initial_ioprio = game_mode_get_ioprio(client);
|
|
||||||
game_mode_apply_ioprio(self, client, IOPRIO_DEFAULT);
|
game_mode_apply_ioprio(self, client, IOPRIO_DEFAULT);
|
||||||
|
|
||||||
/* Apply scheduler policies */
|
/* Apply scheduler policies */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user