noise texture generator: multithreded

Former-commit-id: 4d9539a53aa058eff1fe47f6fce95528a44dff40
Former-commit-id: a0301f167412d1c67ca0cc6956d9e7683e82efaf
This commit is contained in:
Song Minjae
2016-12-22 13:19:40 +09:00
parent 72e348b5e5
commit c1e7b3537d
2 changed files with 100 additions and 50 deletions

View File

@@ -111,10 +111,10 @@ constructor(gamename: String) : StateBasedGame(gamename) {
//addState(StateSplash())
//addState(StateMonitorCheck())
//addState(StateFontTester())
//addState(StateNoiseTexGen())
addState(StateNoiseTexGen())
ingame = StateInGame()
addState(ingame)
//ingame = StateInGame()
//addState(ingame)
}
companion object {
@@ -219,7 +219,7 @@ constructor(gamename: String) : StateBasedGame(gamename) {
val CONTROLLER_DEADZONE = 0.1f
/** Available CPU cores */
val CORES = Runtime.getRuntime().availableProcessors();
val CORES = Runtime.getRuntime().availableProcessors()
/**
* If the game is multithreading.