CesiumGS / CesiumGS/cesium

CPU Perf Issues (Terrain and Imagery)

Open
#7,404 0 comments 0 reactions 0 assignees View on GitHub
category - terrain and imagery
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

Just documenting current CPU perf issues in cesium (terrain and imagery).

Built with combineRelease.

Read pixels can take a while, not sure if that can be helped:
![terrainimagery_readpixels](https://user-images.githubusercontent.com/13598291/49813526-9cc43b00-fd35-11e8-8814-d0579a9d7b70.png)

Compiling the shader ahead of time might help or at least compiling it before it's needed (unless of course that's what it's trying to do here):
![terrainimagery_shadercompile](https://user-images.githubusercontent.com/13598291/49813566-b82f4600-fd35-11e8-990c-f87547a376de.png)

Or maybe try what's mentioned here for non-blocking shading compilation:
http://toji.github.io/shader-perf/

Contributor guide

Open the contributing guide

Research direction

Reproduce the terrain and imagery workload using a combineRelease build, then review the readPixels and shader-compilation traces shown in the issue. Compare the observed behavior with the non-blocking shader compilation approach linked in the report. Done means identifying a concrete CPU bottleneck and validating an improvement against the reported traces.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, performance, web-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.