You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user