Git Product home page Git Product logo

Comments (6)

kfarr avatar kfarr commented on May 14, 2024

stats, default camera placement, http://localhost:8080/#https://streetmix.net/kfarr/3
image

from 3dstreet.

kfarr avatar kfarr commented on May 14, 2024

models worth optimizing:

  • ground component adds ~6k triangles per each, could easily be brought to 1 with a simple plane and texture
  • fence is 80k triangles and 300+ draw calls, huge optimization potential here
  • "block" of buildings is 155k tris and 367 calls, also large optimization potential

not worth optimizing:

  • tracks ~3k tris and 24 calls, moderate optimization potential and known as a model that needs improvement anyway
  • car / bus / train are ~5.5k, ~3k and ~2k tris respectively; for their quality level this isn't too bad; perhaps instancing can be used to reduce calls for duplicated objects?

from 3dstreet.

kfarr avatar kfarr commented on May 14, 2024

Ground component before/after triangle count as part of 5e4d8ca:

from 3dstreet.

kfarr avatar kfarr commented on May 14, 2024

Attempted to reduce draw calls using A-Frame merge geometry component, but can't get it to work for this use case. It doesn't appear to work for gltf models (and/or when entities added dynamically).

Final short term attempts will be to fix the fence and buildings

from 3dstreet.

kfarr avatar kfarr commented on May 14, 2024

Tried using gltfpack and it definitely reduced draw calls but resulted in larger file size. Still experimenting:
#4

Also tried reducing complexity of the 3d scene which definitely helped. That's also a work in progress.

Next, need to test how using gltf-part affects draw calls.

Also in order to use gltf-part with draco needs fixing:
supermedium/superframe#260

from 3dstreet.

kfarr avatar kfarr commented on May 14, 2024

This ticket is too broad so closing as-is. There are other tickets that represent further work on this topic in this milestone:

from 3dstreet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.