()
| 85 | } |
| 86 | |
| 87 | func CalculateFps() int { |
| 88 | fps := baseFPS |
| 89 | if IsGnome { |
| 90 | fps = gnomeFPS |
| 91 | } |
| 92 | if Overrides.LowFPS && fps > 1 { |
| 93 | log.Println("1 fps mode requested") |
| 94 | fps = 1 |
| 95 | } |
| 96 | |
| 97 | return int(math.Max(float64(fps), 1)) |
| 98 | } |
| 99 | |
| 100 | func bool2int(b bool) int { |
| 101 | if b { |