Skip to content

Commit 8c23686

Browse files
committed
Remove runnable_when_unfocused workaround for JS too.
Let's try that out.
1 parent 630c0ce commit 8c23686

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

internal/aaaaxy/init.go

+5-10
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,11 @@ var (
4949
vsync = flag.Bool("vsync", true, "enable waiting for vertical synchronization")
5050
fullscreen = flag.Bool("fullscreen", true, "enable fullscreen mode")
5151
windowScaleFactor = flag.Float64("window_scale_factor", 0, "window scale factor in device pixels per game pixel (0 means auto integer scaling)")
52-
runnableWhenUnfocused = flag.Bool("runnable_when_unfocused", flag.SystemDefault(map[string]bool{
53-
// Focus didn't quite work well on JS. TODO: try testing again later.
54-
"js/*": true,
55-
// Otherwise default to pausing when focus is gone.
56-
"*/*": false,
57-
}), "keep running the game even when not focused")
58-
dumpLoadingFractions = flag.String("dump_loading_fractions", "", "file name to dump actual loading fractions to")
59-
debugJustInit = flag.Bool("debug_just_init", false, "just init everything, then quit right away")
60-
fpsDivisor = flag.Int("fps_divisor", 1, "framerate divisor (use on very low systems, but this may make the game unwinnable or harder as it restricts input; must be a divisor of "+fmt.Sprint(engine.GameTPS))
61-
debugGoGCPercent = flag.Int("debug_go_gc_percent", 0, "if set, replaces the GOGC environment variable; roughly defines the GC overhead, with higher numbers meaning longer but fewer GC pauses and more memory usage, but lower CPU load")
52+
runnableWhenUnfocused = flag.Bool("runnable_when_unfocused", false, "keep running the game even when not focused")
53+
dumpLoadingFractions = flag.String("dump_loading_fractions", "", "file name to dump actual loading fractions to")
54+
debugJustInit = flag.Bool("debug_just_init", false, "just init everything, then quit right away")
55+
fpsDivisor = flag.Int("fps_divisor", 1, "framerate divisor (use on very low systems, but this may make the game unwinnable or harder as it restricts input; must be a divisor of "+fmt.Sprint(engine.GameTPS))
56+
debugGoGCPercent = flag.Int("debug_go_gc_percent", 0, "if set, replaces the GOGC environment variable; roughly defines the GC overhead, with higher numbers meaning longer but fewer GC pauses and more memory usage, but lower CPU load")
6257
)
6358

6459
func LoadConfig() (*flag.Config, error) {

0 commit comments

Comments
 (0)