Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Dec 20, 2024
1 parent 5c1f071 commit 4276ee5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion example/src/plugins/UnloadTilesPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export class UnloadTilesPlugin {

}


};

this._onUpdateBefore = () => {
Expand Down
19 changes: 19 additions & 0 deletions src/plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,3 +594,22 @@ estimatedGPUBytes : number
```

The number of bytes that are actually uploaded to the GPU for rendering compared to `lruCache.cachedBytes` which reports the amount of texture and geometry buffer bytes actually downloaded.

### .constructor

```js
constructor( options : Object )
```

Available options are as follows:

```js
{
// The amount of time to wait in milliseconds before unloading tile content from the GPU. This option can be
// used to account for cases where the user is moving the camera and tiles are coming in and out of frame.
delay: 0,

// The amount of bytes to unload to.
bytesTarget: 0,
}
```

0 comments on commit 4276ee5

Please sign in to comment.