tiny bit of compatibility with Windows 10, (I might broke controllers support; it checks if 0th controller is valid, which in real case, zeroth "controller" may be just keyboards or USB mouse receiver)

Former-commit-id: 5a55035e0181fd78e19eb961fbfbef6c3fcb583c
Former-commit-id: 38e224cebb97386f737c207536289a7a28368e07
This commit is contained in:
Song Minjae
2016-11-16 02:24:19 +09:00
parent 0d2c5f6815
commit da93bd695c
2 changed files with 21 additions and 5 deletions

View File

@@ -229,7 +229,9 @@ constructor() : BasicGameState() {
/////////////////////////
// app-related updates //
/////////////////////////
Terrarum.appgc.setVSync(Terrarum.appgc.fps >= Terrarum.VSYNC_TRIGGER_THRESHOLD)
if (!Terrarum.isWin81) {
Terrarum.appgc.setVSync(Terrarum.appgc.fps >= Terrarum.VSYNC_TRIGGER_THRESHOLD) // windows 10 has some trouble with this...
}
// determine if lightmap blending should be done
Terrarum.gameConfig["smoothlighting"] = KeyToggler.isOn(KEY_LIGHTMAP_SMOOTH)