Optimize fixed-function Vulkan shaders for Adreno 512 and recover Android surfaces
This commit is contained in:
@@ -23,9 +23,9 @@ int g_fps_mode = -1;
|
||||
int g_idle_fps = 30;
|
||||
double g_idle_after_s = 15.0;
|
||||
|
||||
void FrameRatePolicy::load() {
|
||||
void FrameRatePolicy::load(bool prefer_saver) {
|
||||
path_ = settings_path();
|
||||
int mode = MtFrameRate::MODE_STANDARD;
|
||||
int mode = prefer_saver ? MtFrameRate::MODE_SAVER : MtFrameRate::MODE_STANDARD;
|
||||
if (std::ifstream in{path_}; in) in >> mode;
|
||||
if (g_fps_mode >= 0) mode = g_fps_mode;
|
||||
MtFrameRate::Set(mode);
|
||||
|
||||
Reference in New Issue
Block a user