Optimize fixed-function Vulkan shaders for Adreno 512 and recover Android surfaces

This commit is contained in:
shen
2026-09-30 21:48:07 -07:00
parent 1e4762ccf4
commit 922954dd97
17 changed files with 238 additions and 32 deletions
+2 -2
View File
@@ -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);