Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: For DF Premium, is there a maximum size for the dimensions of a sprite sheet?  (Read 651 times)

Mechanixm

  • Bay Watcher
    • View Profile

For example, this tile_page reference to item_weapons.png with a page dimension in pixels of 96x672.

[TILE_PAGE:WEAPONS][FILE:images/item_weapons.png][TILE_DIM:32:32][PAGE_DIM_PIXELS:96:672]

Is there an upper limit to this Page Dimension size?  Could I create a pixel sheet with page dimensions of like 3200x3200 and still be able to reference the graphic in the 99:99 cell without issue?

-Mech

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile

There's no hardcoded limit in the code, but I've previously had issues with too-large tile pages crashing.

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile

I wouldn't be surprised if it's hardware limited, so it may be inconsistent across devices.  Not sure what a safe minimum is these days, but I probably wouldn't go over 4096x4096.
Logged
Through pain, I find wisdom.

Mechanixm

  • Bay Watcher
    • View Profile

I figure I don't need anything larger than 1280x1280.

Thanks for the replies.