Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SIMD support in vertex codec #72

Merged
merged 14 commits into from Nov 2, 2019
Merged
@@ -1,24 +1,23 @@
language: cpp

matrix:
include:
- os: linux
compiler: gcc
- os: linux
compiler: clang
- os: linux
compiler: gcc
arch: arm64
- os: osx
compiler: clang
- os: windows
compiler: cl
env:
- TARGET="Visual Studio 15 2017"
- os: windows
compiler: cl
env:
- TARGET="Visual Studio 15 2017 Win64"
jobs:
- os: linux
compiler: gcc
- os: linux
compiler: clang
- os: linux
compiler: gcc
arch: arm64
- os: osx
compiler: clang
- os: windows
compiler: cl
env:
- TARGET="Visual Studio 15 2017"
- os: windows
compiler: cl
env:
- TARGET="Visual Studio 15 2017 Win64"

script:
- if [[ "$TRAVIS_COMPILER" == "gcc" ]]; then make -j2 config=coverage test; fi
@@ -1016,7 +1016,13 @@ void processDev(const char* path)
if (!loadMesh(mesh, path))
return;

simplifyPoints(mesh);
Mesh copy = mesh;
meshopt_optimizeVertexCache(&copy.indices[0], &copy.indices[0], copy.indices.size(), copy.vertices.size());
meshopt_optimizeVertexFetch(&copy.vertices[0], &copy.indices[0], copy.indices.size(), &copy.vertices[0], copy.vertices.size(), sizeof(Vertex));

encodeIndex(copy);
encodeVertex<PackedVertex>(copy, "");
encodeVertex<PackedVertexOct>(copy, "O");
}

int main(int argc, char** argv)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.