Add some runtime asset importing/exporting benchmarks #80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds benchmarks for runtime importing the Sponza scene as a gltf and fbx file, exporting it as gltf, importing 200 webp images and 50 ogg audio files, taken from Kenney's RPG Audio.
Basically these are runtime versions of benchmarks proposed in #36, so I'm not sure if this PR allows any of them to be ticked off, but the files introduced in this PR can later be used to tackle the startup asset importing benchmarks.
For images, I used
load()
instead ofImage.load_from_file()
because of warnings stating that using this method on images insideres://
doesn't work on export. If we don't care about this andImage.load_from_file()
is preferred, let me know so I can change that.Results on my PC
{
"benchmarks": [
{
"category": "Asset Import Export > Runtime",
"name": "Export Gltf",
"results": {
"time": 122.7
}
},
{
"category": "Asset Import Export > Runtime",
"name": "Import Fbx",
"results": {
"time": 838.7
}
},
{
"category": "Asset Import Export > Runtime",
"name": "Import Gltf",
"results": {
"time": 37.01
}
},
{
"category": "Asset Import Export > Runtime",
"name": "Import Ogg Audio",
"results": {
"time": 19
}
},
{
"category": "Asset Import Export > Runtime",
"name": "Import Webp Images",
"results": {
"time": 949.4
}
}
],
"engine": {
"version": "v4.3.beta2.official",
"version_hash": "b75f0485ba15951b87f1d9a2d8dd0fcd55e178e4"
},
"system": {
"cpu_architecture": "x86_64",
"cpu_count": 12,
"cpu_name": "AMD Ryzen 5 1600 Six-Core Processor",
"os": "Linux"
}
}