Jump to content

Pixi.js resolution performance implications


PixiJsForum1
 Share

Recommended Posts

Hello! I've googling a lot and I can't seem to find if there's any performance implication on 

new Application({ resolution: 1})

vs

new Application({ resolution: 2, autoResize: true})

 

I'm solving an issue related to image, text, graphics, etc crispness, and after adding pixelDeviceRatio as argument for resolution, everything looks just beautiful, but the app just feel more... slow

Link to comment
Share on other sites

I can't seem to find if there's any performance implication on 

Well, guess what it does :) 4x more pixels! Fillrate down, memory down, e.t.c.

btw we added new package https://github.com/pixijs/graphics-smooth that helps with lines:

https://pixijs.io/examples/#/plugin-graphics-smooth/simple.js

it doesnt need antialias nor resolution

Link to comment
Share on other sites

Do you have any suggestions for improving the quality of the stuff? My computer have devicePixelRatio = 2, and here are some screenshots of the huge difference

 

resolution: 2 and autoResize: true

image.png.e134c863e0ea52289f2f93d4129eb39a.png

resolution: 1

image.png.55181ee628a5055e4ac64294375c94f8.png

 

It's quality the way to go? Or there's a potentially better solution

 

(btw, what you see in the screen are just PNG's images loaded in PIXI.Sprite's, the green button is PIXI.Graphic, and the text of the button PIXI.Text)

Link to comment
Share on other sites

On 6/21/2021 at 4:20 PM, ivan.popelyshev said:

I can't seem to find if there's any performance implication on 

Well, guess what it does :) 4x more pixels! Fillrate down, memory down, e.t.c.

btw we added new package https://github.com/pixijs/graphics-smooth that helps with lines:

https://pixijs.io/examples/#/plugin-graphics-smooth/simple.js

it doesnt need antialias nor resolution

Mostly for sprites, I think I can use grapchis-smooth for Graphics, and scale font size for text

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...