question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CacheAsBitmap on resolution > 1

See original GitHub issue

cacheAsBitmap not apply resolution when generate RenderTexture For devices with resolution > 1 this is produce a pixelation.

Expected Behavior

CacheAsBItmap save pixel density for cached elements

Current Behavior

cacheAsBitmap reduce resolution for texture

Possible Solution

Put resolution property from renderer to render texture https://github.com/pixijs/pixi.js/blob/dev/packages/mixin-cache-as-bitmap/src/index.ts#L209

image

Environment

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bigtimebuddycommented, Feb 22, 2021

cacheAsBitmap I believe considers PIXI.settings.RESOLUTION when creating the RenderTexture.

0reactions
bigtimebuddycommented, Feb 26, 2021

@eXponenta do you want to weigh-in on the PR?

Read more comments on GitHub >

github_iconTop Results From Across the Web

CacheAsBitmap on resolution > 1 · Issue #7258 - GitHub
cacheAsBitmap not apply resolution when generate RenderTexture For devices with resolution > 1 this is produce a pixelation.
Read more >
PIXI.Container - PixiJS API Documentation
The resolution to use for cacheAsBitmap. By default this will use the renderer's resolution but can be overriden for performance. Lower values ...
Read more >
PixiJS on Twitter: "One of the new features in v6, is we added ...
One of the new features in v6, is we added a property called "cacheAsBitmapResolution", this is the optional resolution when doing cacheAsBitmap.
Read more >
RenderTexture vs CacheAsBitmap - Pixi.js
I have a Container with ~700 sprites in it, each with a filter applied (I have tried both dropShadow and blur). Obviously that's...
Read more >
AS3 cacheAsBitmap confusion - Stack Overflow
Best. Edit: additionally: try to investigate something near color depth of your bitmap. As you know, if you can convert your bitmap to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found