#Support rrsweat

1 messages · Page 1 of 1 (latest)

onyx pebbleBOT
#

<@&872407642302197760>

Welcome to your Support Thread

Please check if your using the latest Skytils version at #Releases then check #Faq to see if your issue is maybe there, support will come soon.

If you crash do the </crash:995239722609823744> command in Discord and follow the instructions.

sly pivot
#

I profiled with spark

#

Maybe it's because post calls itself

internal open suspend fun <T : Event> post(event: T) {
    invokeHandlers(event)
    if (!event.continuePropagation()) return
    next?.post(event)
}

internal suspend fun <T : Event> invokeHandlers(event: T) {
    handlers[event.javaClass]?.forEach { handler ->
        runCatching {
            @Suppress("UNCHECKED_CAST")
            (handler as Handler<T>).invoke(event)
        }.onFailure {
            uncaughtExceptionHandler(it)
        }
    }
}
#

I get down to like 20fps at times