Skip to content

[WIP] WASM lod tracker#16

Open
avaer wants to merge 7 commits intomainfrom
tracker2
Open

[WIP] WASM lod tracker#16
avaer wants to merge 7 commits intomainfrom
tracker2

Conversation

@avaer
Copy link
Contributor

@avaer avaer commented Jul 27, 2022

This moves the logic of https://github.com/webaverse/app/blob/master/lod.js to WASM, since it was a performance problem.

The issue isn't so much that this code is heavy, but that it happens a lot (at least once for every terrain layer), and it happens at asynchronous times while also causing GC stops, which causes frame timing jitter.

unknown
unknown

When we ship this:

  • merge all lod-requesting apps into one tracker (will give us 5x perf boost)
  • cancel all data requests before issuing a lod swap (smoother GC behavior since we can forget it earlier)
  • have a minimum binding for DataRequest/Dominiator listen on the JS side so it does not interfere with frame timing

@avaer avaer changed the title WASM lod tracker [WIP] WASM lod tracker Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant