Improve startup benchmarking
Move the benchmarking measuring methods from `Engine` to `OS` to allow for platform specific overrides (e.g: can be used to hook into platform specific benchmarking and tracing capabilities).
This commit is contained in:
parent
f581f21dd6
commit
831b4a5366
26 changed files with 386 additions and 129 deletions
|
|
@ -113,6 +113,9 @@ open class GodotEditor : FullScreenGodotApp() {
|
|||
if (args != null && args.isNotEmpty()) {
|
||||
commandLineParams.addAll(listOf(*args))
|
||||
}
|
||||
if (BuildConfig.BUILD_TYPE == "dev") {
|
||||
commandLineParams.add("--benchmark")
|
||||
}
|
||||
}
|
||||
|
||||
override fun getCommandLine() = commandLineParams
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue