gnarly hack to make FPS work okay in full screen.

This commit is contained in:
2015-07-28 00:37:14 -07:00
parent 7c962bdd32
commit cca681adeb
6 changed files with 21 additions and 10 deletions

View File

@@ -20,13 +20,19 @@
(defn -main
[& [port]]
(when port (start-nrepl-expr (Integer/parseInt port)))
(if false
(let [cfg (LwjglApplicationConfiguration.)]
(set! (.width cfg) (doto (.width (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
(set! (.height cfg) (doto (.height (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
(set! (.fullscreen cfg) true)
(LwjglApplication. advent cfg))
(LwjglApplication. advent "advent" 1280 960))
(let [cfg (LwjglApplicationConfiguration.)]
(if false
(do
(set! (.width cfg) (doto (.width (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
(set! (.height cfg) (doto (.height (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
(set! (.fullscreen cfg) true))
(do
(set! (.width cfg) 1280)
(set! (.height cfg) 960)))
(set! (.foregroundFPS cfg) 60)
(set! (.backgroundFPS cfg) 60)
(LwjglApplication. advent cfg))