Author Topic: Faster Way to load an TGA image pack?  (Read 54 times)

LackofTrack

  • Newbie
  • *
  • Posts: 30
  • Karma: +8/-0
    • View Profile
Faster Way to load an TGA image pack?
« on: September 05, 2020, 07:12:49 pm »
Hi!

My map uses 48 tiles and I'm using jo_sprite_add_image_pack to load them, however the game takes about 15 secs to start when I use that function.
Is there any way to speed up the loading?
« Last Edit: September 05, 2020, 10:36:29 pm by LackofTrack »

mindslight

  • Administrator
  • Full Member
  • *****
  • Posts: 184
  • Karma: +18/-3
    • View Profile
    • Jo Engine
Re: Faster Way to load an TGA image pack?
« Reply #1 on: September 07, 2020, 10:00:27 am »
Hi,

Use 8 bits TGA or Jo Bin format instead.

If you use these tiles every time, you can also embed them in the code (hardcoded image)

LackofTrack

  • Newbie
  • *
  • Posts: 30
  • Karma: +8/-0
    • View Profile
Re: Faster Way to load an TGA image pack?
« Reply #2 on: September 08, 2020, 03:48:01 am »
I already use 8 Bit TGA so that wouldn't help. Is there any way to have a map use a tileset instead? I think that would solve the problem.

 

Sitemap 1 2 3 4 5 6 7 8 9 10