mirror of https://github.com/mosra/magnum.git
Browse Source
Now I'm able to measure -- with the Rungholt scene from McGuire
archives, it takes it a whooping 7.3 seconds, measured with
magnum-sceneconverter --info-meshes --profile rungholt.obj
Compared to that, AssimpImporter in the default configuration takes 10.3
seconds, but with
magnum-sceneconverter --info-meshes --profile -I AssimpImporter \
-i postprocess/JoinIdenticalVertices=false,postprocess/SortByPType=false \
rungholt.obj
it takes just 4.3 seconds. And has the same vertex data size in total,
so that should probably be the default. I got some work to do, then.
master
7 changed files with 144 additions and 17 deletions
@ -0,0 +1,31 @@
|
||||
# A house. |
||||
# |
||||
# 1 |
||||
# / \ |
||||
# / \ |
||||
# 2 --- 5 |
||||
# | | |
||||
# | | |
||||
# 3 --- 4 |
||||
|
||||
v 0 3 0 |
||||
v -1 1 0 |
||||
v -1 -1 0 |
||||
v 1 -1 0 |
||||
v 1 1 0 |
||||
|
||||
vt 0.5 1 |
||||
vt 0 0.5 |
||||
vt 0 0 |
||||
vt 1 0 |
||||
vt 1 0.5 |
||||
|
||||
# Normals of the roof are pointing up, to the left and to the right |
||||
vn 0 1 0 |
||||
vn -1 0 0 |
||||
vn 1 0 0 |
||||
f 1/1/1 2/2/2 5/5/3 |
||||
|
||||
# Normals of the walls are all pointing down |
||||
vn 0 -1 0 |
||||
f 2/2/4 3/3/4 4/4/4 5/5/4 |
||||
Loading…
Reference in new issue