Skip to content

Commit

Permalink
readme typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed Oct 3, 2024
1 parent 4804776 commit 835fdeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,9 @@ We believe that the *promise* approach is better because it does not nest scopes
### The `webglContextLost` event
The maps is rendered with WebGL, that leverages the GPU to provide high-performance graphics. In some cases, the host machine, operating system or the graphics driver, can decide that continuing to run such high performance graphics is unsustainable, and will abort the process. This is called a "WebGL context loss". Such situation happens when the ressources are running low or when multiple browser tabs are competing to access graphics memory.

The best course of action in such situation varies from an app to another. Sometimes a page refresh is the best thing to do, in other cases, instantiating a new Map dynmicaly at application level is more appropriate because it hides a technical failure to the end user. The event `webglContextLost` is exposed so most appropriate scenario can be implemented at application level.
The best course of action in such situation varies from an app to another. Sometimes a page refresh is the best thing to do, in other cases, instantiating a new Map dynmicaly at application level is more appropriate because it hides a technical failure to the end user. The event `webglContextLost` is exposed so that the most appropriate scenario can be implemented at application level.

Here is how to respond to a WebGL loss with a simple page refresh:
Here is how to respond to a WebGL context loss with a simple page refresh:
```ts

// Init the map
Expand Down

0 comments on commit 835fdeb

Please sign in to comment.