mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-08 01:24:04 +09:00
minor edits
This commit is contained in:
@@ -17,7 +17,7 @@ object ThreadExecutor {
|
|||||||
private fun checkShutdown() {
|
private fun checkShutdown() {
|
||||||
if (!executor.isShutdown) return
|
if (!executor.isShutdown) return
|
||||||
if (executor.isShutdown&& !executor.isTerminated)
|
if (executor.isShutdown&& !executor.isTerminated)
|
||||||
throw IllegalStateException("Thread pool is still running")
|
throw IllegalStateException("Pool is closed, come back when all the threads are terminated.")
|
||||||
|
|
||||||
executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors())
|
executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class WorldgenLoadScreen(private val world: GameWorld, screenToBeLoaded: IngameI
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private const val WIDTH_RATIO = 0.6
|
private const val WIDTH_RATIO = 0.6
|
||||||
|
private const val PREVIEW_UPDATE_RATE = 1/8f
|
||||||
}
|
}
|
||||||
|
|
||||||
private val previewWidth = (AppLoader.screenW * WIDTH_RATIO).roundToInt()
|
private val previewWidth = (AppLoader.screenW * WIDTH_RATIO).roundToInt()
|
||||||
|
|||||||
Reference in New Issue
Block a user