Carl Bateman
09/30/2021, 8:29 AMFatal signal 11 (SIGSEGV) at 0x42a637d9 (code=1)
Seems like some sort of concurrency issue. Having a class that runs glFinish() on every render pass mitigates the problem to a certain point (up to 8 to 10 images), but even with small amount of images and running a very simple filter, the FPS drops to about 8 or 9.Deactivated User
09/30/2021, 8:43 AMMayank
09/30/2021, 10:50 AMDeactivated User
09/30/2021, 11:33 AMCarl Bateman
09/30/2021, 12:47 PMMayank
09/30/2021, 12:50 PMCarl Bateman
09/30/2021, 12:56 PMimport com.soywiz.klock.*
import com.soywiz.korge.*
import com.soywiz.korge.tween.*
import com.soywiz.korge.view.*
import com.soywiz.korge.view.filter.BlurFilter
import com.soywiz.korge.view.filter.IdentityFilter
import com.soywiz.korim.color.*
import com.soywiz.korim.format.*
import com.soywiz.korio.file.std.*
import com.soywiz.korma.geom.*
import com.soywiz.korma.interpolation.*
suspend fun main() = Korge(width = 512, height = 512, bgcolor = Colors["#2b2b2b"]) {
var iter = 0
repeat(3, {
val image = image(resourcesVfs["korge.png"].readBitmap()) {
rotation = 0.degrees
anchor(.5, .5)
scale(0.1)
position(256, 30 * iter)
}
})
// while (true) {
// image.tween(image::rotation[minDegrees], time = 1.seconds, easing = Easing.EASE_IN_OUT)
// image.tween(image::rotation[maxDegrees], time = 1.seconds, easing = Easing.EASE_IN_OUT)
// }
}
oh, and it's a real device, not emulatorDeactivated User
09/30/2021, 2:57 PMSahil Bajaj
10/06/2021, 5:43 PMDeactivated User
10/06/2021, 6:27 PMSahil Bajaj
10/09/2021, 5:24 AMDeactivated User
10/09/2021, 11:49 AMSahil Bajaj
10/09/2021, 12:03 PMDeactivated User
10/09/2021, 5:39 PMval bitmap = resourcesVfs["korge.png"].readBitmap()
val blur = BlurFilter(initialRadius = 0.0)
image(bitmap).also { it.filter = blur }
timeout(40.milliseconds) { blur.radius = 1.0 }
Mayank
10/10/2021, 3:15 PMPaulo Magalhaes
10/11/2021, 2:34 PMSahil Bajaj
10/13/2021, 8:22 AMoverride suspend fun Container.sceneMain() {
repeat(5) {
val image = Image(resourcesVfs["korge.png"].readBitmap().slice())
image.pos = Point(it * 200.0, it * 300.0)
repeat(1) {
val filter = IdentityFilter(false)
image.addFilter(filter)
}
this.addChild(image)
}
}
Paulo Magalhaes
10/20/2021, 6:32 PMDeactivated User
10/22/2021, 8:04 AMSahil Bajaj
10/22/2021, 10:32 AMDeactivated User
10/25/2021, 2:26 PMSahil Bajaj
10/25/2021, 5:04 PM