about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.lua6
-rw-r--r--run.lua5
-rw-r--r--source.lua5
3 files changed, 6 insertions, 10 deletions
diff --git a/main.lua b/main.lua
index b6d1a5d..5e434c6 100644
--- a/main.lua
+++ b/main.lua
@@ -84,6 +84,12 @@ function App.initialize_globals()
 end
 
 function App.initialize(arg)
+  love.window.setVSync(0)  -- simplify profiling; we're not a game
+  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
+  love.keyboard.setKeyRepeat(true)
+
+  love.graphics.setBackgroundColor(1,1,1)
+
   if Current_app == 'run' then
     run.initialize(arg)
   elseif Current_app == 'source' then
diff --git a/run.lua b/run.lua
index 2ada1ba..5806cae 100644
--- a/run.lua
+++ b/run.lua
@@ -16,11 +16,6 @@ end
 -- called only for real run
 function run.initialize(arg)
   log_new('run')
-  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
-  love.keyboard.setKeyRepeat(true)
-
-  love.graphics.setBackgroundColor(1,1,1)
-
   if Settings then
     run.load_settings()
   else
diff --git a/source.lua b/source.lua
index 3ad4b12..3501185 100644
--- a/source.lua
+++ b/source.lua
@@ -61,11 +61,6 @@ end
 -- called only for real run
 function source.initialize()
   log_new('source')
-  love.keyboard.setTextInput(true)  -- bring up keyboard on touch screen
-  love.keyboard.setKeyRepeat(true)
-
-  love.graphics.setBackgroundColor(1,1,1)
-
   if Settings and Settings.source then
     source.load_settings()
   else