fps goes down on auto mirror/flip

0 favourites
  • 11 posts
From the Asset Store
Goodbye to sprite fonts, when you have something new on the anvil for your upcoming Games !
  • when the action of auto mirror/flip executes the fps slows to 1/5 and sometimes the sprite dissapears

    And without it runs fine at 59fps.

    Is that common? Related to sprite size?

  • How often are you flipping it?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Every arrow key press (Left or Right - Changes the angle of character).

  • Is it a continuous FPS drop or a one-off? Can you post an example? It seems to work fine for me.

  • in platform mode i wanted to fix the problem with the player sprite mirrored in animation frame 2, and switch with the keys.

    but the mirror tool inside "edit image" doesnt work at all, it cuts the image in the center. also the other tools like resize or flip dont really do the things they should.

    hope u can help me workaround this problem.

  • found the issue cause, its related to the resolution of the image i imported.

    Images with to high resolution (like 1000 x 700) imported into sprite editor and resized inside the game layout cause this fps drops.

    Depending the resolution it freezes the game for a time (fps 0-1) and after it unfreezes it works without any delay, including changing to left/right.

    Also if you change the Browser tab when the game is freezed and go back, the object will be duplicated (including texts)

    http://www.mediafire.com/?axuaacakaddeam4

  • The first time the character flips it mirrors the texture on-the-spot, which can cause a temporary pause if the image is large.

    You should not have such a large image though! Your game will perform a lot better - and download a lot faster - if you resize the large image to be small outside of C2, then import the small image. You should not design games to use such large images! If it performs badly with large images, there's nothing we can do. You're giving the browser too much work to do. You just have to use smaller images.

  • so what about the ability to use frames as states for mirroring? isn't that idea a lot better, also because of performance?

    when can i asume to be able to use the tool in the sprite import window correctly? or do i need to workaround with mirroring in events for longer time?

  • thanks again

  • so what about the ability to use frames as states for mirroring?

    You can if you like - it's just boring importing the same frames and mirroring them, and then you have twice as many animation frames that have to be downloaded. The auto-mirror is mainly to save on download size, really (and for convenience).

    hen can i asume to be able to use the tool in the sprite import window correctly?

    Sorry, I'm not sure I understand what you mean. Is something not working?

  • yes, sorry for my english. the mirror, flip and resize tool in the sprite import window is not working for me. it just ruines the sprite. if u want i can upload a pic. maybe this is based on the ati bug?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)