ivan.popelyshev

Members
  • Content Count

    2,795
  • Joined

  • Last visited

  • Days Won

    16

ivan.popelyshev last won the day on November 25 2018

ivan.popelyshev had the most liked content!

About ivan.popelyshev

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    https://gameofbombs.com/
  • Twitter
    ivanpopelyshev

Profile Information

  • Gender
    Male
  • Location
    Moscow, Russia
  • Interests
    Pixi.js, Topcoder, Codeforces, ninjas and bombers

Recent Profile Visitors

6,501 profile views
  1. ivan.popelyshev

    Place Sprite Over All Other Sprites?

    Update: In v5 there's zIndex field for any object
  2. ivan.popelyshev

    Vue + Pixi v4 events do not work

    dont forget to destroy that app/renderer later
  3. ivan.popelyshev

    Discord server?

    pixijs and phaser3 have slack teams. Do you want an invite?
  4. ivan.popelyshev

    Low fps with 2-3k static circles

    No, its not, because pixi has to rebuild the circle vertices each time. You can change "graphics.scale", try it, see what happens when there are not enough vertices. Maybe its ok for you.
  5. ivan.popelyshev

    Vue + Pixi v4 events do not work

    Hi! it should work. Most of the time, some DOM element blocks all mouse events from reaching the canvas.
  6. ivan.popelyshev

    Low fps with 2-3k static circles

    In v4, Graphics elements are not batched, and if you use cacheAsBitmap on every element, it will spawn extra texture, so its not a solution, Its even worse: instead of changing buffer and 2000 graphics elements, pixi will change a texture for each of those sprites. You have to spawn only one circle, render it into one texture, then spawn many sprites and use tint parameter. In v5 graphics batching works, you dont have to do anything. Development version of v5 is here: pixijs.download/dev/pixi.js , docs here: http://pixijs.download/dev/docs/index.html That's a short answer. For long one read all the threads of this subforum.
  7. ivan.popelyshev

    How do I handle extra large sprite sheet correctly

    https://github.com/pixijs/pixi.js/blob/v4.x/src/core/renderers/webgl/TextureGarbageCollector.js#L24 https://github.com/pixijs/pixi.js/blob/v4.x/src/core/renderers/webgl/WebGLRenderer.js#L247 Here's another way to do that: app.renderer.textureGC.mode = PIXI.GC_MODES.MANUAL Same applies to any global settings that are assigned to a field somewhere in constructor.
  8. Hack https://github.com/pixijs/pixi.js/blob/v4.x/src/loaders/spritesheetParser.js that way it takes query string from parent resource url, then rebuild pixi. Or you can hack it in already built pixijs.
  9. ivan.popelyshev

    How do I handle extra large sprite sheet correctly

    I don't know whether pools are making it faster or not. Its not guaranteed.
  10. ivan.popelyshev

    How do I handle extra large sprite sheet correctly

    Its related to graphics backend inside browser. You switched off pixi GC, right?
  11. ivan.popelyshev

    How do I handle extra large sprite sheet correctly

    Browser can store textures in operative memory instead of videomemory, and we cant control that. Operative memory = RAM. Shift+escape in chrome shows mem for every tab, and GPU mem for everything. There's no way to determine where exactly is your texture now, but if size of your textures doesn't fit in GPU, there can be 50% lag, like you said. 3840 < 4096 so no texture size limits should affect your case.
  12. ivan.popelyshev

    How do I handle extra large sprite sheet correctly

    You described the problem correctly and your last solution should work. You say it doesn't work, so something is wrong, please prepare the case for us: either a fiddle or a zip-file. My telepathy doesn't work on this particular case. 11k x 5k x 4 bytes per pixel = 264MB , and that's both for instance in operative memory (canvas/image) and in videomemory. If your memory is not enough , there'll be extra uploads (swaps) between operative memory and video memory.
  13. ivan.popelyshev

    Getting a pixi-tiledmap error when trying to load a bitmap font?

    I suggest you make PR for it, at least as an option if (resource.extension !== 'tmx' && !resource.metadata.isTilemap) { next(); return; } Just in case someone renames the file extension.
  14. ivan.popelyshev

    Pixi.js Showcase

    There should not be slowdown between v4 and v5. v3 though doesnt have multi-texturing shader. I dont want to spend my time investigating this test, I've spent too many hours already.
  15. ivan.popelyshev

    Getting a pixi-tiledmap error when trying to load a bitmap font?

    Find where it crashes, fix it, make PR: https://github.com/riebel/pixi-tiledmap/blob/master/src/tiledMapLoader.js , or just patch built JS directly. I don't know author of this plugin.