Author Topic: Faster Way to load an TGA image pack?  (Read 1677 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: 189
  • Karma: +19/-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.

RenatoRodrigoBS

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Faster Way to load an TGA image pack?
« Reply #3 on: August 24, 2021, 01:19:38 am »
I also would like to know how todo this! In fact, Id like to know how put a 8bit color 3D sprite in a 3D world too !? im traying but without success ! How this works ?

 

Sitemap 1 2 3 4 5 6 7 8 9 10