[2.15.0] 优化子线程切主线程操作

This commit is contained in:
renwj
2023-03-27 20:40:51 +08:00
parent e14bde9129
commit 0beb152ab0
5 changed files with 64 additions and 53 deletions

View File

@@ -219,12 +219,12 @@ internal object GmePoller {
if (ITMGContext.GetInstance(null) != null) {
ITMGContext.GetInstance(null).Poll()
}
handler.postDelayed(this, 30)
handler.postDelayed(this, 1000)
}
}
internal fun start() {
handler.postDelayed(poll, 30)
handler.postDelayed(poll, 2000)
}
internal fun stop() {