Skip to content

Conversation

@cvan
Copy link
Contributor

@cvan cvan commented Feb 9, 2016

Interestingly, because of how entities loads assets asynchronously, this doesn't improve the case of a scene that requests multiple images that share the same URL on page load. Example: http://localhost:9000/examples/showcase-spheres-and-fog/

But if you add a new entity with an asset that has already been loaded (and cached), then a cache hit does in fact happen, and it's served from the in-memory cache.

If the nodes and their assets were loaded sequentially, all subsequent requests would be cache hits. But that's not how things work.

So this isn't a huge improvement, but it'll help in some cases.

@cvan cvan added the perf label Feb 9, 2016
dmarcos added a commit that referenced this pull request Feb 12, 2016
use THREE.Cache for in-memory asset caching (fixes #772)
@dmarcos dmarcos merged commit 45eda14 into aframevr:dev Feb 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants