playcanvas / playcanvas/engine

Smooth loading of non-preloaded assets

Open
#5,242 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: graphics performance
Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

If we have a project where nothing is preloaded, there will be a long period when first starting the app where it freezes and stutters. It's not a pleasant experience for the user who thinks the application has loaded, but can't interact with it.

Try running this scene, and move the camera. I'm measuring around 5-10 seconds of freezing and stuttering after the application has loaded. Also, if you let the application load for a while, then move the camera around, you'll get stutters and freezing when new objects come into view. This is a quite small application, just imagine a large game world having this issue.

Is there a way to smooth out these loading times?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the linked scene and profiling startup plus camera movement as new objects enter view. Compare the freeze and stutter during initial and visibility-triggered asset loading, then identify a feasible way to smooth those loading periods. Done means the scene remains responsive while non-preloaded assets load.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.