diff --git a/docs/guides/advanced/cache-as-texture.md b/docs/guides/advanced/cache-as-texture.md index 67b7ebc2d..b31d79644 100644 --- a/docs/guides/advanced/cache-as-texture.md +++ b/docs/guides/advanced/cache-as-texture.md @@ -4,7 +4,9 @@ The `cacheAsTexture` function in PixiJS is a powerful tool for optimizing rendering in your applications. By rendering a container and its children to a texture, `cacheAsTexture` can significantly improve performance for static or infrequently updated containers. Let's explore how to use it effectively, along with its benefits and considerations. -> **Note:** `cacheAsTexture` is PixiJS v8's equivalent of the previous `cacheAsBitmap` functionality. If you're migrating from v7 or earlier, simply replace `cacheAsBitmap` with `cacheAsTexture` in your code. +:::info Note +`cacheAsTexture` is PixiJS v8's equivalent of the previous `cacheAsBitmap` functionality. If you're migrating from v7 or earlier, simply replace `cacheAsBitmap` with `cacheAsTexture` in your code. +::: --- @@ -77,7 +79,7 @@ import * as PIXI from 'pixi.js'; aliens.push(alien); alienContainer.addChild(alien); } - + // this will cache the container and its children as a single texture // so instead of drawing 100 sprites, it will draw a single texture! alienContainer.cacheAsTexture() @@ -158,4 +160,4 @@ Once the texture is cached, updating it via `updateCacheTexture()` is efficient - **Reusing the texture**: If you want to create a new texture based on the container, its better to use `const texture = renderer.generateTexture(container)` and share that amongst you objects! -By understanding and applying `cacheAsTexture` strategically, you can significantly enhance the rendering performance of your PixiJS projects. Happy coding! \ No newline at end of file +By understanding and applying `cacheAsTexture` strategically, you can significantly enhance the rendering performance of your PixiJS projects. Happy coding! diff --git a/docs/pixi-version.json b/docs/pixi-version.json index f7d2bd6d5..eb7709837 100644 --- a/docs/pixi-version.json +++ b/docs/pixi-version.json @@ -1,10 +1,10 @@ { "versionLabel": "v8.x", - "version": "8.6.1", - "releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v8.6.1", - "build": "https://pixijs.download/v8.6.1/pixi.min.js", - "docs": "https://pixijs.download/v8.6.1/docs/index.html", - "npm": "8.6.1", + "version": "8.6.2", + "releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v8.6.2", + "build": "https://pixijs.download/v8.6.2/pixi.min.js", + "docs": "https://pixijs.download/v8.6.2/docs/index.html", + "npm": "8.6.2", "prerelease": false, "latest": true } \ No newline at end of file diff --git a/pixi-versions.json b/pixi-versions.json index 337bd8a7c..ebbac9b42 100644 --- a/pixi-versions.json +++ b/pixi-versions.json @@ -12,11 +12,11 @@ }, { "versionLabel": "v8.x", - "version": "8.6.1", - "releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v8.6.1", - "build": "https://pixijs.download/v8.6.1/pixi.min.js", - "docs": "https://pixijs.download/v8.6.1/docs/index.html", - "npm": "8.6.1", + "version": "8.6.2", + "releaseNotes": "https://github.com/pixijs/pixijs/releases/tag/v8.6.2", + "build": "https://pixijs.download/v8.6.2/pixi.min.js", + "docs": "https://pixijs.download/v8.6.2/docs/index.html", + "npm": "8.6.2", "prerelease": false, "latest": true, "isCurrent": true