Large Canvases drop fps

This forum is currently in read-only mode.
From the Asset Store
Create a game inspired by great arcade classics as Operation Wolf
  • having 1 large canvas(10000X10000+) has little to no effect on frame rate, but having 2 large canvas drops it to 15 fps.

    Why?

    And is there anyway to mitigate this?

  • A 10000x10000 canvas uses 256mb of ram. Two use 512. Don't do that, as it seriously limits the number of people who can play your game.

    A canvas generally shouldn't have to be larger than the screen - what are you using it for?

  • well its actually 8000 X 6000

    large world tile map, 200x 200 tiles each at the size of 40x30.

    40,000 objects is just impossible. since there is no proper tile support , I figured creating at array x y, pasting to canvas, then deleting was the only option. didn't factor in my 4 year old computer being to cutting edge. (it probably is for a lot of people).

    suppose your right. only way around is to dynamically generate the tiles based on the screen position. Maybe just keep the edges of the terrain persistent for path finding. but what a nightmare....

  • Why not 10 layouts 800 x 600?

  • its an RTS. so the world needs to be seamless

    a large map in aoe2 was 255x255 tiles

    so its not a unrealistic size for a rts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ahh, well if your using the rts behavior, you might have some issues managing it dynamically.

    You can maybe get path finding to cooperate with things on screen, but what to do with things off screen?

  • Use an array to store RTS elements (units, terrain). Only render what is supposed to be on screen.

  • keeping an array for units or anything else isn't really necessary, unless i plan on writing my own A* path-finding algorithm using an array(that's not going to happen).

    As I said, I could have the terrain be rendered according to the screen position and just keep the tiles at the edge of terrain for path-finding to navigate around. that should keep the tile-objects in the 1000-7000 range.

    But it just seems cumbersome and inefficient.

    for all the amazing things construct can do with such ease, the difficulty in using tile maps (something thats been a staple in 2d games since the 8-bit era) is ridiculous.

  • for all the amazing things construct can do with such ease, the difficulty in using tile maps (something thats been a staple in 2d games since the 8-bit era) is ridiculous.

    All people who wants tiling feature, we should hire someone to write it

  • I would just like an object that never gets checked.

    Don't get me wrong.A tiling feature/editor wold be nice, but it doesn't even seam possible to make your own from scratch.

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