gnarly hack to make FPS work okay in full screen.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user