| 101 | |
| 102 | bool GraphicsConfig::Migrate(int refreshHz) |
| 103 | { |
| 104 | if (version >= kVersion) |
| 105 | return false; |
| 106 | |
| 107 | // 1.0 is the pre-v1 stamped default; any other value was chosen and stays. |
| 108 | if (version < 1 && gamma == 1.0f) |
| 109 | gamma = 1.2f; |
| 110 | |
| 111 | // A cap of 0 below v2 is indistinguishable from the old default, so it is |
| 112 | // taken as never set. From v2 on it is the user's Unlimited and survives. |
| 113 | if (fpsCap == 0) |
| 114 | fpsCap = FpsCapForRefreshRate(refreshHz); |
| 115 |
no outgoing calls
no test coverage detected