Krystian
01/13/2023, 7:55 PMkevin.cianfarini
01/13/2023, 8:38 PMKrystian
01/13/2023, 9:20 PMKrystian
01/13/2023, 9:21 PMKrystian
01/13/2023, 9:21 PMAdam S
01/13/2023, 9:23 PMkevin.cianfarini
01/13/2023, 9:23 PMkevin.cianfarini
01/13/2023, 9:24 PMprintln
them and compare between windows and linuxkevin.cianfarini
01/13/2023, 9:26 PMKrystian
01/13/2023, 9:28 PMkevin.cianfarini
01/13/2023, 9:33 PMfun <T> traceTime(functionName: String, block: () -> T): T {
val timedResult = measureTimedValue(block)
println("$functionName took ${timedResult.duration.inMilliseconds} ms.")
}
val functionResult = traceTime("someRaylibFunction") { someRaylibFunction() }
kevin.cianfarini
01/13/2023, 9:33 PMblock
and print the result to stdout while allowing your program to do it’s thing. Peppering this around your codebase could allow for fairly easy comparisons of windows and linuxKrystian
01/13/2023, 9:35 PMKrystian
01/13/2023, 10:12 PMkevin.cianfarini
01/13/2023, 10:20 PMkevin.cianfarini
01/13/2023, 10:21 PMkevin.cianfarini
01/13/2023, 10:22 PMKrystian
01/13/2023, 10:25 PMKrystian
01/13/2023, 10:33 PMKrystian
01/13/2023, 11:19 PMKrystian
01/13/2023, 11:38 PM-femulated-tls
flag was meant to be removed since 1.6 (https://youtrack.jetbrains.com/issue/KT-47605) but it's still present in konan.properties so I wonder if this is causing all the performance issues on Windows?kevin.cianfarini
01/13/2023, 11:40 PMKrystian
01/13/2023, 11:41 PM-femulated-tls
flag is not present and confirmed in the post I've linked earlierkevin.cianfarini
01/13/2023, 11:42 PMKrystian
01/13/2023, 11:45 PMsergey.bogolepov
01/14/2023, 7:26 AM-femululated-tls
is most likely the cause. Unfortunately, it can’t be dropped because toolchain we use is compiled with that flag. It probably can be solved by updating toolchain, but Windows-specific performance problems are out of our focus at the moment.sergey.bogolepov
01/14/2023, 7:28 AMNo, it was not. The issue is purely about LLD, not that flag.flag was meant to be removed since 1.6-femulated-tls
Krystian
01/14/2023, 10:09 AM